Ignore:
Timestamp:
Mar 9, 2010 1:08:05 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
4e9719b
Parents:
c2c153b
Message:

SEER support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/smbmount.Linux.pl

    rc2c153b r9b3627e  
    5959        /GID=(\S+)/ && do { $gid = $1; };
    6060        /HOMEDIR=(\S+)/ && do { $homedir = $1; };
     61        my $ids = $FSTYPE == 'smbfs' ? ",uid=$uid,gid=$gid" : "";
    6162
    6263        open(PWDFILE, ">/tmp/$user.cifs_creds") ||
     
    7071        print FSTAB "//$SHARE/$user\t";
    7172        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";
    7374
    7475        #
     
    8384        if($user =~ m/$PUSER/i) {
    8485            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";
    8789            if ( $share) {
    8890                print FSTAB "//$SHARE/share\t";
    8991                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";
    9193
    9294                mkdir("/share") unless -d "/share";
Note: See TracChangeset for help on using the changeset viewer.