[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

two bugs fixed in ramfs 1.4



Hello all,

some people in Mausnet have noticed a bug in RAMFS 1.4 that prevented it
from working with GEMINI (because of a bad return code in
ram_readlabel).

Another bug, more annoying for those using decent shells :-) like tcsh,
is that RAMFS did not update the date/time fields of a directory when
you removed an item from it.

You should apply the following patch to ramfs.c to upgrade it from
version 1.4 to version 1.5.  It fixes these two bugs. 

Thierry.


--- /ram/ramfs.c	Mon Aug 16 13:39:42 1993
+++ ramfs.c	Fri Nov 19 19:44:34 1993
@@ -17,13 +17,15 @@
  *      get rid of drive R. Added FS_LONGPATH support.
  *      The size of the RAMFILE structure is now considered in the getxattr
  *      and dfree functions.
+ * 1.5  Fixed the return-code in ram_readlabel. Also, update the mtime of
+ *      a directory when one of its files is deleted.
  */
 
 #include <string.h>
 #include "atarierr.h"
 #include "filesys.h"
 
-#define VERSION  "1.4"
+#define VERSION  "1.5"
 
 /*
  * You may edit the following constants:
@@ -418,6 +420,9 @@
         s->next = trash;
         trash = s;
         _unlink(s);
+        
+        d->time = Timestamp();
+        d->date = Datestamp();
 }
 
 /* Is a filename valid ? */
@@ -706,7 +711,7 @@
 long ram_readlabel (fcookie *dir, char *name, int namelen)
 {
         DEBUG(("ram_readlabel: not implemented"));
-        return EINVFN;
+        return EFILNF;
 }
 
 long ram_hardlink (fcookie *fromdir, char *fromname,