diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2009-07-25 17:48:01 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2009-07-25 17:48:01 -0700 |
commit | 52599d7b22f44f7e0ea301e7f42efce687df86d0 (patch) | |
tree | 8d0906a5eab8f4da46486b8373ce5e0aa32c0fce | |
parent | 681e7e972756661571a16dbc3bc1a1fb6875f264 (diff) | |
parent | 362c6be80153f1f42cec2e014fb8a8473beba8d3 (diff) | |
download | dosfstools-52599d7b22f44f7e0ea301e7f42efce687df86d0.tar.gz |
Merge korg/donut into korg/master
-rw-r--r-- | Android.mk | 3 | ||||
-rw-r--r-- | src/Android.mk | 20 | ||||
-rw-r--r-- | src/io.c | 6 |
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 @@ -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; |