From: bfernhomberg Date: Sun, 11 Jul 2004 02:17:51 +0000 (+0000) Subject: don't try to create special folders and .volinfo on read-only volumes. X-Git-Tag: netatalk-2-0-rc1~34 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=7e8d70b0308b890165918eec90b7cb17f8c3132f;p=netatalk.git don't try to create special folders and .volinfo on read-only volumes. --- diff --git a/etc/afpd/volume.c b/etc/afpd/volume.c index 57d6d148..958b82fc 100644 --- a/etc/afpd/volume.c +++ b/etc/afpd/volume.c @@ -1,5 +1,5 @@ /* - * $Id: volume.c,v 1.51.2.7.2.31 2004-06-09 01:15:21 bfernhomberg Exp $ + * $Id: volume.c,v 1.51.2.7.2.32 2004-07-11 02:17:51 bfernhomberg Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -1746,8 +1746,10 @@ int ibuflen, *rbuflen; ret = stat_vol(bitmap, volume, rbuf, rbuflen); if (ret == AFP_OK) { - handle_special_folders( volume ); - savevoloptions( volume); + if (!(volume->v_flags & AFPVOL_RO)) { + handle_special_folders( volume ); + savevoloptions( volume); + } /* * If you mount a volume twice, the second time the trash appears on