Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r15 - in trunk: . fsvs/src

fsvs
Discussion topic

Back to topic list

svn commit: r15 - in trunk: . fsvs/src

Author pmarek
Full name P.Marek
Date 2005-10-04 23:01:46 PDT
Message Author: pmarek
Date: Tue Oct 4 23:01:46 2005
New Revision: 15

Modified:
   trunk/ (props changed)
   trunk/fsvs/src/waa.c
Log:
bugfix for current directory deleted



Modified: trunk/fsvs/src/waa.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/trunk/fsvs/src/waa​.c?view=diff&rev​=15&p1=trunk/fsv​s/src/waa.c&r1=1​4&p2=trunk/fsvs/​src/waa.c&r2=15
====================​====================​====================​==================
--- trunk/fsvs/src/waa.c (original)
+++ trunk/fsvs/src/waa.c Tue Oct 4 23:01:46 2005
@@ -405,6 +405,11 @@
     if (!directory)
     {
         directory=getcwd(NULL, 0);
+ /* If the cwd has been removed, we get ENOENT here.
+ * But returning that would not signal a fatal error! */
+ STOPIF_CODE_ERR( !directory, errno == ENOENT ? ENOTDIR : errno,
+ "Cannot get the current directory");
+
         apr_md5(digest, directory, strlen(directory));
         IF_FREE(directory);
     }

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r15 - in trunk: . fsvs/src pmarek P.Marek 2005-10-04 23:01:46 PDT
Messages per page: