don't close high fd's in smbrun when using insure (prevents closing
[kai/samba.git] / source3 / lib / netatalk.c
index a11676b1e6d1172ef09ed5058982e527b053e235..ae0a57154e140d6fab8d4312b166775e8896ffa2 100644 (file)
@@ -82,7 +82,7 @@ int ntalk_mkresdir(const char *fname)
   char fdir[255];
   int i;
   int lastslash;
-  struct stat dirstats;
+  SMB_STRUCT_STAT dirstats;
   char appledouble[] = APPLEDOUBLE;
 
   /* find directory containing fname */
@@ -94,7 +94,7 @@ int ntalk_mkresdir(const char *fname)
   }
   lastslash++;
   fdir[lastslash] = 0;
-  lstat(fdir, &dirstats);
+  sys_lstat(fdir, &dirstats);
 
   /* append .AppleDouble */
   for (i = 0; (appledouble[i] != 0) && (lastslash <= 254); i++) {