]> arthur.barton.de Git - netatalk.git/commitdiff
AppleVolumes add \ line continuation
authordidg <didg>
Sun, 1 Feb 2009 07:11:56 +0000 (07:11 +0000)
committerdidg <didg>
Sun, 1 Feb 2009 07:11:56 +0000 (07:11 +0000)
etc/afpd/volume.c

index bbd67cde71069d66e9703eb81a92417971b7189b..0ebb8d5b982ad4b1069870311e3cff898634ffaa 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: volume.c,v 1.77 2009-02-01 07:03:57 didg Exp $
+ * $Id: volume.c,v 1.78 2009-02-01 07:11:56 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -721,6 +721,11 @@ FILE       *fp;
     p = buf;
     while ((EOF != ( c = getc( fp )) ) && ( size > 1 )) {
         if ( c == '\n' || c == '\r' ) {
+            if (p != buf && *(p -1) == '\\') {
+                p--;
+                size++;
+                continue;
+            }
             *p++ = '\n';
             break;
         } else {