[sork] Problem with sork and smrsh

Eric Rostetter eric.rostetter@physics.utexas.edu
Fri, 6 Sep 2002 10:35:01 -0500


For those with file permission problems, there is no good solution.  There
is no standard ftp chmod() type call.  So the best we can do is to try using
the ftp site command, and hope for the best.  Can those having problems try
this patch and see if it works?  Let me know if you try it, and what the 
outcome is.  The patch is to cvs RELENG_2, but should be easy to implement
in any version (just adds one line of code).

Patch can be found at https://mail.ph.utexas.edu/patches/misc/vacation.php.diff

Included here, but the mailers will probably mutilate it, so if in doubt
try the above url.

Index: vacation.php
===================================================================
RCS file: /repository/vacation/Attic/vacation.php,v
retrieving revision 1.3
diff -u -r1.3 vacation.php
--- vacation.php        30 Jun 2002 00:12:38 -0000      1.3
+++ vacation.php        6 Sep 2002 15:30:22 -0000
@@ -116,6 +116,7 @@
             @ftp_quit($ftpConnection);
             return false;
         }
+        @ftp_site($ftpConnection, "site chmod 0600 $dst");
         @ftp_quit($ftpConnection);
         return true;
 }

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

"TAD (Technology Attachment Disorder) is an unshakable, impractical devotion
to a brand, platform, product line, or programming language. It's relatively
harmless among the rank and file, but when management is afflicted the damage
can be measured in dollars. It's also contagious -- someone with sufficient
political clout can infect an entire organization."

--"Enterprise Strategies" columnist Tom Yager.