diff options
author | Rob Austein <sra@hactrn.net> | 2013-02-01 13:22:19 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2013-02-01 13:22:19 +0000 |
commit | 93a3dbf7830cc81ff1a62eb73d02aaeec1e949e5 (patch) | |
tree | 861b61ce0c1b2ac94a4a1b8a693e3c83191e270a /rcynic/rcynic-cron.py | |
parent | 2f9828622d5ba395a0666dea34fb6cf48ab0b406 (diff) |
Cleanup.
svn path=/branches/tk377/; revision=5000
Diffstat (limited to 'rcynic/rcynic-cron.py')
-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") |