This commit was manufactured by cvs2svn to create branch
[util-vserver.git] / util-vserver / src / vutil.cc
index 94957a3..efd8465 100644 (file)
 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 #pragma implementation
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+#include "compat.h"
+
+#undef PACKAGE
+
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
@@ -28,7 +36,9 @@
 #include <utime.h>
 #include "vutil.h"
 #include <sys/ioctl.h>
-#include <linux/ext2_fs.h>
+
+#include "ext2fs.h"
+
 
 bool testmode;
 int debug;
@@ -92,7 +102,7 @@ int setext2flag (const char *fname, bool set, int ext2flags)
                        ret = ioctl (fd,EXT2_IOC_SETFLAGS,&flags);
                        close (fd);
                        if (ret == -1){
-                               fprintf (stderr,"Can't %s immutable flag on file %s (^s)\n"
+                               fprintf (stderr,"Can't %s immutable flag on file %s (%s)\n"
                                        ,(set ? "set" : "unset")
                                        ,fname
                                        ,strerror(errno));