use $(LIBENSCVECTOR) instead of libensc_vector.a
[util-vserver.git] / util-vserver / lib / getvservervdir.c
index 8ac43fd..754ae15 100644 (file)
@@ -47,7 +47,7 @@ getDir(char *dir, bool physical)
     dir = 0;
 
   if (fchdir(fd)==-1) {
-    write(2, "FATAL error: failed to restore directory\n", 41);
+    if (write(2, "FATAL error: failed to restore directory\n", 41)!=41) { /*...*/ }
     abort();
   }
   close(fd);