summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2001-10-28 22:54:16 +0000
committerrwatson <rwatson@FreeBSD.org>2001-10-28 22:54:16 +0000
commit4037e00a247415670f6c86658f9d821a47468cba (patch)
treea2001d1c5c68c26fc4d5abf39efc5008de18bb25 /usr.bin/login
parent6a075cd07bd4c9da92a7f801a0b109991ededd80 (diff)
downloadFreeBSD-src-4037e00a247415670f6c86658f9d821a47468cba.zip
FreeBSD-src-4037e00a247415670f6c86658f9d821a47468cba.tar.gz
o Restore previous inconsistent style to login_fbtab.c, following its
modification to add glob support. The submitted patch used a degraded form of KNF. Reviewed by: bde
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/login_fbtab.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/usr.bin/login/login_fbtab.c b/usr.bin/login/login_fbtab.c
index c3ca5ec..a40d83f 100644
--- a/usr.bin/login/login_fbtab.c
+++ b/usr.bin/login/login_fbtab.c
@@ -122,27 +122,27 @@ gid_t gid;
void
login_protect(table, pattern, mask, uid, gid)
- char *table;
- char *pattern;
- int mask;
- uid_t uid;
- gid_t gid;
+char *table;
+char *pattern;
+int mask;
+uid_t uid;
+gid_t gid;
{
- glob_t gl;
- char *path;
- int i;
-
- if (glob(pattern, GLOB_NOSORT, NULL, &gl) != 0)
- return;
- for (i = 0; i < gl.gl_pathc; i++) {
- path = gl.gl_pathv[i];
- /* clear flags of the device */
- if (chflags(path, 0) && errno != ENOENT && errno != EOPNOTSUPP)
- syslog(LOG_ERR, "%s: chflags(%s): %m", table, path);
- if (chmod(path, mask) && errno != ENOENT)
- syslog(LOG_ERR, "%s: chmod(%s): %m", table, path);
- if (chown(path, uid, gid) && errno != ENOENT)
- syslog(LOG_ERR, "%s: chown(%s): %m", table, path);
- }
- globfree(&gl);
+ glob_t gl;
+ char *path;
+ int i;
+
+ if (glob(pattern, GLOB_NOSORT, NULL, &gl) != 0)
+ return;
+ for (i = 0; i < gl.gl_pathc; i++) {
+ path = gl.gl_pathv[i];
+ /* clear flags of the device */
+ if (chflags(path, 0) && errno != ENOENT && errno != EOPNOTSUPP)
+ syslog(LOG_ERR, "%s: chflags(%s): %m", table, path);
+ if (chmod(path, mask) && errno != ENOENT)
+ syslog(LOG_ERR, "%s: chmod(%s): %m", table, path);
+ if (chown(path, uid, gid) && errno != ENOENT)
+ syslog(LOG_ERR, "%s: chown(%s): %m", table, path);
+ }
+ globfree(&gl);
}
OpenPOWER on IntegriCloud