]> granicus.if.org Git - cronie/commitdiff
Make cronnext build and work with additional features enabled.
authorTomas Mraz <tmraz@fedoraproject.org>
Fri, 28 Apr 2017 08:20:01 +0000 (10:20 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Fri, 28 Apr 2017 08:20:01 +0000 (10:20 +0200)
.gitignore
src/Makefile.am
src/cronnext.c

index adfe553077d11d806a527e7481024337dcbe74da..16358774b5fb564701df6fd6e139e53dbdf0b48d 100644 (file)
@@ -25,6 +25,7 @@ tags
 *.o
 src/crond
 src/crontab
+src/cronnext
 src/cron-paths.h
 *~
 *.tar.*
index c074145b2a67ff40f039cabd0241195a475478fa..e832f1267041209d34849a6108236a9a4cfcac2c 100644 (file)
@@ -4,13 +4,13 @@ sbin_PROGRAMS = crond
 bin_PROGRAMS = crontab cronnext
 
 crond_SOURCES = \
-       cron.c database.c user.c job.c do_command.c popen.c \
+       cron.c database.c user.c job.c do_command.c popen.c security.c \
        $(common_src)
-crontab_SOURCES = crontab.c $(common_src)
+crontab_SOURCES = crontab.c security.c $(common_src)
 cronnext_SOURCES = \
-       cronnext.c database.c user.c job.c do_command.c popen.c \
+       cronnext.c database.c user.c job.c \
        $(common_src)
-common_src = entry.c env.c misc.c pw_dup.c security.c \
+common_src = entry.c env.c misc.c pw_dup.c \
        externs.h funcs.h globals.h macros.h pathnames.h structs.h \
        bitstring.h
 common_nodist = cron-paths.h
index 0e8144e93d9702f40fe994187beda314c0a67e69..3d5ce63a49e8c74c25ddba19ee090232b190960b 100644 (file)
 #include "funcs.h"
 #include "cron-paths.h"
 
+#ifdef WITH_INOTIFY
+void set_cron_watched(int fd) {
+/* empty stub */
+       (void)fd;
+}
+#endif
+
+void do_command(entry *e, user *u) {
+/* empty stub */
+       (void)e;
+       (void)u;
+}
+
+#ifdef WITH_SELINUX
+int get_security_context(const char *name, int crontab_fd,
+                        security_context_t *rcontext, const char *tabname) {
+/* empty stub */
+       (void)name;
+       (void)crontab_fd;
+       (void)tabname;
+       *rcontext = NULL;
+       return 0;
+}
+
+void free_security_context(security_context_t *scontext) {
+/* empty stub */
+       (void)scontext;
+}
+#endif
+
 /*
  * print entry flags
  */