Changed to test not only for readonly fs
authorMarius Tomaschewski <mt@suse.de>
Thu, 9 Feb 2006 19:32:52 +0000 (19:32 +0000)
committerMarius Tomaschewski <mt@suse.de>
Thu, 9 Feb 2006 19:32:52 +0000 (19:32 +0000)
zypp/media/MediaHandler.cc

index 1eb18e4..f44eceb 100644 (file)
@@ -226,12 +226,13 @@ MediaHandler::createAttachPoint() const
       adir( Pathname::extend( abase, str::hexstring( i ) ) );
       if ( ! adir.isExist() ) {
        int err = mkdir( adir.path() );
-       if (err == EROFS)                       // readonly fs, dont try further
-          break;
        if (err == 0 ) {
             apoint = adir.path();
             break;
        }
+       else
+       if (err != EEXIST)      // readonly fs or other, dont try further
+          break;
       }
     }
   }