Simple patch for pts.c
Rasmus Kaj <[email protected]>
| Newsgroups | gmane.comp.file-systems.arla.general |
|---|---|
| Organization | http://www.stacken.kth.se/ - Stacken computer club, Stockholm |
| Message-ID | <[email protected]> |
In appl/pts/pts.c, the chown_cmd function, there is a mistake in argument ordering, so pts chown fail. There is a patch in /afs/kth.se/home/k/a/kaj/Public/patch-ptc.c or attached to this message that makes pts chown work. -- Rasmus Kaj <[email protected]> -- http://www.stacken.kth.se/~kaj/ All science is either physics or stamp collecting. -E. Rutherford _______________________________________________ Arla-drinkers mailing list [email protected] https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers
patch-ptc.c
(text/x-patch, 845 B)
Index: appl/pts/pts.c
===================================================================
RCS file: /stacken-cvs/arla/appl/pts/pts.c,v
retrieving revision 1.57
diff -u -r1.57 pts.c
--- appl/pts/pts.c 4 Oct 2003 02:36:32 -0000 1.57
+++ appl/pts/pts.c 9 Nov 2006 23:36:11 -0000
@@ -1158,8 +1158,8 @@
arg = chownarg;
arg->value = &name; arg++;
arg->value = &owner; arg++;
- arg->value = &cell; arg++;
arg->value = &host; arg++;
+ arg->value = &cell; arg++;
arg->value = &noauth; arg++;
if (agetarg (chownarg, argc, argv, &optind, AARG_AFSSTYLE)) {
@@ -1168,6 +1168,9 @@
}
cell = cell_expand_cell (cell);
+
+ if (prdebug)
+ printf("cell is \"%s\", host is \"%s\"\n", cell, host);
error = pr_chown(cell, host, name, owner,
arlalib_getauthflag (noauth, 0, 0, 0));