]> mj.ucw.cz Git - libucw.git/commitdiff
Use sh_ftruncate() instead of ftruncate().
authorMartin Mares <mj@ucw.cz>
Thu, 15 Mar 2001 22:22:34 +0000 (22:22 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 15 Mar 2001 22:22:34 +0000 (22:22 +0000)
lib/buckettool.c

index c46cf425023a9e724352306459ff5381dc41aa22..f64da2da821ecd715fe86633d0c7ea75ca4354b5 100644 (file)
@@ -192,7 +192,7 @@ fsck(int fix)
              if (fix)
                {
                  printf("*** truncating file\n");
-                 ftruncate(fd, pos);
+                 sh_ftruncate(fd, pos);
                }
              else
                printf("*** would truncate the file here\n");