Index: login_fbtab.c =================================================================== RCS file: /spare/freebsd/ncvs/src/usr.bin/login/login_fbtab.c,v retrieving revision 1.10 diff -u -r1.10 login_fbtab.c --- login_fbtab.c 25 Oct 2001 20:45:47 -0000 1.10 +++ login_fbtab.c 26 Oct 2001 18:08:23 -0000 @@ -122,27 +122,27 @@ 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; + 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); + 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); }