[csw-devel] SF.net SVN: gar:[19133] csw/mgar/pkg/cswclassutils/trunk/files
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Sun Sep 2 04:13:59 CEST 2012
Revision: 19133
http://gar.svn.sourceforge.net/gar/?rev=19133&view=rev
Author: bdwalton
Date: 2012-09-02 02:13:58 +0000 (Sun, 02 Sep 2012)
Log Message:
-----------
cas_crontab: futher corrections to umask and permission handling - force ownership on temp file when cleaning out old entries
Modified Paths:
--------------
csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswcrontab
csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswcrontab
Modified: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswcrontab
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswcrontab 2012-09-01 12:52:22 UTC (rev 19132)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswcrontab 2012-09-02 02:13:58 UTC (rev 19133)
@@ -35,6 +35,7 @@
state=1
rm -f "${cron_file}"
touch "${cron_file}"
+ chown "${USERNAME}" "${cron_file}"
while read LINE; do
if [ ${state} -eq 1 ]; then
if echo "${LINE}" | grep "^# ${crontab_tag} ${cron_id}\$" >/dev/null; then
Modified: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswcrontab
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswcrontab 2012-09-01 12:52:22 UTC (rev 19132)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.r.cswcrontab 2012-09-02 02:13:58 UTC (rev 19133)
@@ -35,6 +35,7 @@
state=1
rm -f "${cron_file}"
touch "${cron_file}"
+ chown "${USERNAME}" "${cron_file}"
while read LINE; do
if [ ${state} -eq 1 ]; then
if echo "${LINE}" | grep "^# ${crontab_tag} ${cron_id}\$" >/dev/null; then
@@ -65,7 +66,7 @@
USERNAME=`/usr/bin/basename $dest`
TMPFILE=/tmp/cswcrontab.${PKGINST}.$$
- umask 600
+ umask 177
/usr/bin/crontab -l ${USERNAME} | remove_cron_lines "${PKGINST}" "${TMPFILE}"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list