]> granicus.if.org Git - cronie/commitdiff
Hard links on system table break doing jobs.
authormmaslano <mmaslano@redhat.com>
Fri, 24 Aug 2007 06:17:37 +0000 (08:17 +0200)
committerTomas Janousek <tomi@nomi.cz>
Mon, 27 Aug 2007 14:03:54 +0000 (16:03 +0200)
database.c

index 930f19ac89bc06774809f41fce9947df9f2699f9..6309a29a9f209afca7a5be0fd382fefc6a4ffb51 100644 (file)
@@ -256,7 +256,7 @@ process_crontab(const char *uname, const char *fname, const char *tabname,
                    log_it(fname, getpid(), "WRONG FILE OWNER", tabname);
                    goto next_crontab;
            }
-           if (statbuf->st_nlink != 1) {
+           if (pw && statbuf->st_nlink != 1) {
                    log_it(fname, getpid(), "BAD LINK COUNT", tabname);
                    goto next_crontab;
            }