From 7baecbe6a372a23f86de9360ea96d86cbe6280e1 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 25 Aug 2015 11:09:04 -0700 Subject: [PATCH] Fix the fs_config call. fs_config ORs in bits to the existing mode value. Change-Id: I23f0655f9c4c8c8dc43ed979f3b519d7c03a11f8 --- adb/file_sync_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/file_sync_service.cpp b/adb/file_sync_service.cpp index abf1c021a..cadf5b3c3 100644 --- a/adb/file_sync_service.cpp +++ b/adb/file_sync_service.cpp @@ -305,7 +305,7 @@ static bool do_send(int s, const std::string& spec, std::vector& buffer) { gid_t gid = -1; uint64_t cap = 0; if (should_use_fs_config(path)) { - unsigned int broken_api_hack; + unsigned int broken_api_hack = mode; fs_config(path.c_str(), 0, &uid, &gid, &broken_api_hack, &cap); mode = broken_api_hack; }