From: Derrick Brashear Date: Wed, 21 Sep 2011 06:03:30 +0000 (-0400) Subject: afscp: allow listing of bare root.cell dirs in dynroot mode X-Git-Tag: upstream/1.8.0_pre1^2~3240 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=fb1d7491fbe2e90300b23284f213cac2bdcd56ac;p=packages%2Fo%2Fopenafs.git afscp: allow listing of bare root.cell dirs in dynroot mode don't assume that /afs/cell.name (as opposed to /afs/cell.name/) is bogus. if there's text, at least try Change-Id: I9566efe60c942533cd0415a03528953cb90310c9 Reviewed-on: http://gerrit.openafs.org/5480 Reviewed-by: Jeffrey Altman Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/libafscp/afscp_dir.c b/src/libafscp/afscp_dir.c index 84af12711..780c6d9e5 100644 --- a/src/libafscp/afscp_dir.c +++ b/src/libafscp/afscp_dir.c @@ -371,7 +371,7 @@ gettoproot(struct afscp_cell *cell, char *p, char **q, r = p; while (*r && *r != '/') r++; - if (!*r) { + if (!*r && !p) { afscp_errno = ENODEV; return 1; }