diff options
author | dds <dds@FreeBSD.org> | 2005-09-19 10:11:47 +0000 |
---|---|---|
committer | dds <dds@FreeBSD.org> | 2005-09-19 10:11:47 +0000 |
commit | 248fff8f2c72da16178e9a3499dc0329a23bf6a8 (patch) | |
tree | b9e9a486c907a4c31419775d1ae3f05e395fd2ba /usr.bin/finger/util.c | |
parent | f70f74d5f076e2bfc3306dd597eb2f74d884b0ee (diff) | |
download | FreeBSD-src-248fff8f2c72da16178e9a3499dc0329a23bf6a8.zip FreeBSD-src-248fff8f2c72da16178e9a3499dc0329a23bf6a8.tar.gz |
Setting .nofinger will not hide you from root.
Diffstat (limited to 'usr.bin/finger/util.c')
-rw-r--r-- | usr.bin/finger/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c index 3ac5a06..a84c711 100644 --- a/usr.bin/finger/util.c +++ b/usr.bin/finger/util.c @@ -408,6 +408,7 @@ userinfo(PERSON *pn, struct passwd *pw) /* * Is this user hiding from finger? * If ~<user>/.nofinger exists, return 1 (hide), else return 0 (nohide). + * Nobody can hide from root. */ int @@ -416,7 +417,7 @@ hide(struct passwd *pw) struct stat st; char buf[MAXPATHLEN]; - if (!pw->pw_dir) + if (invoker_root || !pw->pw_dir) return 0; snprintf(buf, sizeof(buf), "%s/%s", pw->pw_dir, _PATH_NOFINGER); |