Changeset 9b3627e for fedkit/smbmount.Linux.pl
- Timestamp:
- Mar 9, 2010 1:08:05 AM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 4e9719b
- Parents:
- c2c153b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/smbmount.Linux.pl
rc2c153b r9b3627e 59 59 /GID=(\S+)/ && do { $gid = $1; }; 60 60 /HOMEDIR=(\S+)/ && do { $homedir = $1; }; 61 my $ids = $FSTYPE == 'smbfs' ? ",uid=$uid,gid=$gid" : ""; 61 62 62 63 open(PWDFILE, ">/tmp/$user.cifs_creds") || … … 70 71 print FSTAB "//$SHARE/$user\t"; 71 72 print FSTAB "$homedir\t$FSTYPE\t"; 72 print FSTAB "auto,rw,credentials=/tmp/$user.cifs_creds ,ip=$ADDR\t0\t0\n";73 print FSTAB "auto,rw,credentials=/tmp/$user.cifs_creds$ids,ip=$ADDR\t0\t0\n"; 73 74 74 75 # … … 83 84 if($user =~ m/$PUSER/i) { 84 85 print FSTAB "//$SHARE/proj-$PNAME\t"; 85 print FSTAB "$PROJROOT/$PNAME\tcifs\t"; 86 print FSTAB "rw,credentials=/tmp/$user.cifs_creds,ip=$ADDR\t0\t0\n"; 86 print FSTAB "$PROJROOT/$PNAME\t$FSTYPE\t"; 87 print FSTAB "rw,credentials=/tmp/$user.cifs_creds$ids,ip=$ADDR\t0\t0\n"; 88 mkdir("/$PROJROOT/$PNAME") unless -d "/$PROJROOT/$PNAME"; 87 89 if ( $share) { 88 90 print FSTAB "//$SHARE/share\t"; 89 91 print FSTAB "/share\t$FSTYPE\t"; 90 print FSTAB "rw,credentials=/tmp/$user.cifs_creds ,ip=$ADDR\t0\t0\n";92 print FSTAB "rw,credentials=/tmp/$user.cifs_creds$ids,ip=$ADDR\t0\t0\n"; 91 93 92 94 mkdir("/share") unless -d "/share";
Note: See TracChangeset
for help on using the changeset viewer.