From: Derrick Brashear Date: Thu, 15 May 2003 17:41:25 +0000 (+0000) Subject: vol-more-logging-20030515 X-Git-Tag: openafs-devel-1_3_50~217 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=36225d657349c6dad851fee286a200ef1d3a82b4;p=packages%2Fo%2Fopenafs.git vol-more-logging-20030515 FIXES 1453 much more to do here. start with this. --- diff --git a/src/vol/volume.c b/src/vol/volume.c index fdd4426df..45c514a10 100644 --- a/src/vol/volume.c +++ b/src/vol/volume.c @@ -569,7 +569,9 @@ VAttachVolumeByName_r(Error *ec, char *partition, char *name, int mode) strcat(path, name); VOL_UNLOCK if ((fd = open(path, O_RDONLY)) == -1 || fstat(fd,&status) == -1) { - close(fd); + Log("VAttachVolume: Failed to open %s (errno %d)\n", path, errno); + if (fd > -1) + close(fd); VOL_LOCK *ec = VNOVOL; goto done;