last check in didn't set permissions for subangebote the
authorpesch
Thu, 21 Apr 2016 16:08:13 +0200
changeset 49 b68c49bc006c
parent 48 4910dd57e4b5
child 50 41d99ec54b53
last check in didn't set permissions for subangebote the way it supposed to be
tele-watch.pl
--- a/tele-watch.pl	Thu Apr 21 15:59:19 2016 +0200
+++ b/tele-watch.pl	Thu Apr 21 16:08:13 2016 +0200
@@ -78,10 +78,10 @@
 		if ($pid == 0) {
 			chdir $dir or die "Can't chdir to $dir: $!\n";
 			for ('subangebote') {
-				mkdir $_;
+                mkdir $_ => 0770;
                 $gid = getgrnam('PM');
 				chown $uid, $gid => $_;
-				chmod $mode & 02770 => $_;
+                chmod($mode & 02770, $_);
 			}
 			exec "true";	# avoid execution of END{ } blocks
 		}