]> git.sesse.net Git - betaftpd/blobdiff - nonroot.h
Fixed a security problem where the custom snprintf() would always be used. Thanks...
[betaftpd] / nonroot.h
index fd2308468eb0f81048c2b542e18f8687f17a08ef..b5a34320bbcf1a63bdd2083dc19e5e16cc7c8076 100644 (file)
--- a/nonroot.h
+++ b/nonroot.h
@@ -2,7 +2,7 @@
     Copyright (C) 1999-2000 Steinar H. Gunderson
 
     This program is is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License, version 2 if the
+    it under the terms of the GNU General Public License, version 2 of the
     License as published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
@@ -15,6 +15,9 @@
     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
 
+#ifndef _NONROOT_H
+#define _NONROOT_H 1
+
 int nr_userinfo(const char * const username, int * const uid,
                 char * const homedir, char * const rootdir,
                 const char * const password);
@@ -28,3 +31,4 @@ int member_of_group(const uid_t uid, const gid_t gid);
 char *nr_get_uname(const uid_t uid);
 char *nr_get_gname(const gid_t gid);
 
+#endif