summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2009-07-25 17:48:01 -0700
committerJean-Baptiste Queru <jbq@google.com>2009-07-25 17:48:01 -0700
commit52599d7b22f44f7e0ea301e7f42efce687df86d0 (patch)
tree8d0906a5eab8f4da46486b8373ce5e0aa32c0fce
parent681e7e972756661571a16dbc3bc1a1fb6875f264 (diff)
parent362c6be80153f1f42cec2e014fb8a8473beba8d3 (diff)
downloaddosfstools-52599d7b22f44f7e0ea301e7f42efce687df86d0.tar.gz
Merge korg/donut into korg/master
-rw-r--r--Android.mk3
-rw-r--r--src/Android.mk20
-rw-r--r--src/io.c6
3 files changed, 4 insertions, 25 deletions
diff --git a/Android.mk b/Android.mk
deleted file mode 100644
index 3c3cb61..0000000
--- a/Android.mk
+++ /dev/null
@@ -1,3 +0,0 @@
-ifneq ($(TARGET_SIMULATOR),true)
- include $(call all-subdir-makefiles)
-endif
diff --git a/src/Android.mk b/src/Android.mk
deleted file mode 100644
index a76a23a..0000000
--- a/src/Android.mk
+++ /dev/null
@@ -1,20 +0,0 @@
-ifneq ($(TARGET_SIMULATOR), true)
-
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES := \
- boot.c check.c common.c fat.c file.c io.c lfn.c dosfsck.c
-
-LOCAL_C_INCLUDES := external/dosfstools/src
-
-LOCAL_CFLAGS := -O2 -g -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-
-LOCAL_MODULE := dosfsck
-LOCAL_MODULE_TAGS :=
-LOCAL_SYSTEM_SHARED_LIBRARIES := libc
-
-include $(BUILD_EXECUTABLE)
-
-endif
diff --git a/src/io.c b/src/io.c
index 0ab0bbf..e1b07fc 100644
--- a/src/io.c
+++ b/src/io.c
@@ -76,8 +76,10 @@ void fs_open(char *path,int rw)
{
struct stat stbuf;
- if ((fd = open(path,rw ? O_RDWR : O_RDONLY)) < 0)
- pdie("open %s",path);
+ if ((fd = open(path,rw ? O_RDWR : O_RDONLY)) < 0) {
+ perror("open");
+ exit(6);
+ }
changes = last = NULL;
did_change = 0;