diff options
-rw-r--r-- | rcynic/rcynic-cron.py | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/rcynic/rcynic-cron.py b/rcynic/rcynic-cron.py index ba96ec6b..b3b1c4b2 100644 --- a/rcynic/rcynic-cron.py +++ b/rcynic/rcynic-cron.py @@ -21,6 +21,11 @@ PERFORMANCE OF THIS SOFTWARE. # Locking code here works like FreeBSD's lockf(1) utility given -k and # -t 0 options, which is both the sanest and simplest combination for # our purposes. In theory this is portable to any Unix-like system. +# +# At some point we might want to implement the chroot() and setuid() +# functionality here rather than using this mess of platform-specific +# external programs. I don't have time to write and debug that today, +# but it might well be simpler and more portable. import subprocess import sys @@ -28,19 +33,6 @@ import fcntl import os import pwd -# Stuff we need from autoconf: -# -# AC_RCYNIC_USER -# AC_RCYNIC_GROUP -# AC_RCYNIC_DIR -# AC_bindir -# AC_sysconfdir -# AC_RCYNIC_HTML_DIR -# AC_SU -# AC_SUDO -# AC_CHROOT -# AC_CHROOTUID - we_are_root = os.getuid() == 0 beastie = sys.platform.startswith("freebsd") or sys.platform.startswith("darwin") |