Skip to content

Commit

Permalink
darwinup: fix bad return code from update_xpc_services_cache.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.macosforge.org/repository/darwinbuild/trunk@1063 10a61168-4876-4dac-953b-31e694342555
  • Loading branch information
mwwa committed May 2, 2013
1 parent d3ea7f7 commit b993329
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Darwin Build Scripts Change History
-----------------------------------
Release 36 [2-May-2013]
- darwinup: fix bad return code from update_xpc_services_cache.

Release 35 [24-Apr-2013]
- all: fix implicit integer conversions.

Expand Down
1 change: 1 addition & 0 deletions darwinup/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ int update_xpc_services_cache(const char* path) {
res = open(cachepath, O_APPEND | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (res >= 0) {
close(res);
res = 0;
} else {
fprintf(stderr, "Error: (%d) failed to touch cache file.\n", errno);
res = errno;
Expand Down
2 changes: 1 addition & 1 deletion darwinup/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ int main(int argc, char* argv[]) {
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
while ((ch = getopt(argc, argv, "dfnp:rvh")) != -1) {
#else
while ((ch = getopt(argc, argv, "fnp:vh")) != -1) {
while ((ch = getopt(argc, argv, "dfnp:vh")) != -1) {
#endif
switch (ch) {
case 'd':
Expand Down

0 comments on commit b993329

Please sign in to comment.