]> arthur.barton.de Git - netatalk.git/commitdiff
afp_createfile return VLOCK rather than PARAM error if the volume is mounted read...
authordidg <didg>
Sat, 26 Apr 2003 16:53:44 +0000 (16:53 +0000)
committerdidg <didg>
Sat, 26 Apr 2003 16:53:44 +0000 (16:53 +0000)
etc/afpd/file.c

index 8047052ca3cada76f2f255138dc049fc67c4ab0e..5b330a838690e1b0151a1bdf3712cae3738aa37b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: file.c,v 1.91 2003-04-20 06:53:40 didg Exp $
+ * $Id: file.c,v 1.92 2003-04-26 16:53:44 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -617,6 +617,8 @@ int         ibuflen, *rbuflen;
     if ( ad_open( upath, vol_noadouble(vol)|ADFLAGS_DF|ADFLAGS_HF|ADFLAGS_NOHF,
                   openf, 0666, adp) < 0 ) {
         switch ( errno ) {
+        case EROFS:
+            return AFPERR_VLOCK;
         case ENOENT : /* we were already in 'did folder' so chdir() didn't fail */
             return ( AFPERR_NOOBJ );
         case EEXIST :