home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 August
/
Chip_2003-08_cd1.bin
/
zkuste
/
macos
/
Files
/
Safari.dmg
/
Safari.pkg
/
Contents
/
Resources
/
preflight
< prev
next >
Wrap
Text File
|
2003-06-16
|
502b
|
23 lines
#!/usr/bin/perl
my $permissions_info_file = "/tmp/com.apple.installation.savedperm";
my $target_disk = $ARGV[2];
my @stat_info;
my $MODE = 2;
my $UID = 4;
my $GID = 5;
if(! -e $permissions_info_file || (-e $permissions_info_file && unlink($permissions_info_file))) {
@stat_info = stat($target_disk);
if(open(PERMS_FILE_HDL, ">$permissions_info_file")) {
print(PERMS_FILE_HDL join("\n", stat($target_disk)));
close(PERMS_FILE_HDL);
chmod(oct(700), "$permissions_info_file");
}
}
exit(0);