windows-freelance-admin-20050817
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 17 Aug 2005 17:06:26 +0000 (17:06 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 17 Aug 2005 17:06:26 +0000 (17:06 +0000)
When testing for IsFreelance() use the right path for symlink rm and
fs rmmount.

src/WINNT/afsd/fs.c
src/WINNT/afsd/symlink.c

index 5c7d0ad..e5a0b6d 100644 (file)
@@ -1943,7 +1943,7 @@ RemoveMountCmd(struct cmd_syndesc *as, char *arock) {
            continue;   /* don't bother trying */
        }
 
-        if ( IsFreelanceRoot(Parent(tp)) && !IsAdmin() ) {
+        if ( IsFreelanceRoot(Parent(ti->data)) && !IsAdmin() ) {
             fprintf(stderr,"%s: Only AFS Client Administrators may alter the root.afs volume\n", pn);
             error = 1;
             continue;   /* skip */
index 4ab4cda..a1dd36f 100644 (file)
@@ -471,7 +471,7 @@ register struct cmd_syndesc *as; {
            continue;   /* don't bother trying */
        }
 
-        if ( IsFreelanceRoot(Parent(tp)) && !IsAdmin() ) {
+        if ( IsFreelanceRoot(Parent(ti->data)) && !IsAdmin() ) {
             fprintf(stderr,"symlink: Only AFS Client Administrators may alter the root.afs volume\n");
             code = 1;
             continue;   /* skip */