]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
fs getfid defaults to '.', like other path-related commands
authorPhillip Moore <w.phillip.moore@gmail.com>
Tue, 19 Oct 2010 15:31:47 +0000 (11:31 -0400)
committerDerrick Brashear <shadow@dementia.org>
Wed, 3 Nov 2010 10:50:16 +0000 (03:50 -0700)
I noticed that all of the other commands that accept a list of paths
use the SetDotDefault() function to default to ".", when no arguments
are given.  This patch adds that call to getfid, making it more
consistent with similar commands.

Reviewed-on: http://gerrit.openafs.org/3008
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit c77ac5ce976b6f3e5a13a3f739ddbb6e32a177b1)
Change-Id: I94ada76f835ccd01e2061034bd6585d6f1d5dccb
Reviewed-on: http://gerrit.openafs.org/3231

src/venus/fs.c

index 4b3880918caf66a0e45696c850b7f40072d6f39c..a8c17123eaeb2da37f127cf99dbc874457277fe4 100644 (file)
@@ -4261,6 +4261,7 @@ GetFidCmd(struct cmd_syndesc *as, void *arock)
     int error = 0;
     char cell[MAXCELLCHARS];
 
+    SetDotDefault(&as->parms[0].items);
     for (ti = as->parms[0].items; ti; ti = ti->next) {
         struct VenusFid vfid;