summaryrefslogtreecommitdiff
path: root/lib/libutil/_secure_path.c
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>1997-05-15 06:08:44 +0000
committerDavid Nugent <davidn@FreeBSD.org>1997-05-15 06:08:44 +0000
commitcacb7e68149b8c11a744af79d942fc044f78fa88 (patch)
tree538c61a225c2c498b412e5b68f6f7b8bfedff981 /lib/libutil/_secure_path.c
parent270fd87cbb06c9211e6ad3d5a0e645d848b74ef3 (diff)
Notes
Diffstat (limited to 'lib/libutil/_secure_path.c')
-rw-r--r--lib/libutil/_secure_path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/_secure_path.c b/lib/libutil/_secure_path.c
index 38a974eb18a8..01c29bf7b3eb 100644
--- a/lib/libutil/_secure_path.c
+++ b/lib/libutil/_secure_path.c
@@ -18,7 +18,7 @@
* 5. Modifications may be freely made to this file providing the above
* conditions are met.
*
- * $Id$
+ * $Id: _secure_path.c,v 1.1 1997/05/10 18:55:37 davidn Exp $
*/
@@ -57,7 +57,7 @@ _secure_path(const char *path, uid_t uid, gid_t gid)
msg = "%s: %s is not a regular file";
else if (sb.st_mode & S_IWOTH)
msg = "%s: %s is world writable";
- else if (uid != -1 && sb.st_uid != uid) {
+ else if (uid != -1 && sb.st_uid != uid && sb.st_uid != 0) {
if (uid == 0)
msg = "%s: %s is not owned by root";
else