diff --git a/library/GNUmakefile.68k b/library/GNUmakefile.68k index 3bb81be..495640a 100644 --- a/library/GNUmakefile.68k +++ b/library/GNUmakefile.68k @@ -1,5 +1,5 @@ # -# $Id: GNUmakefile.68k,v 1.81 2006-04-05 07:53:23 obarthel Exp $ +# $Id: GNUmakefile.68k,v 1.82 2006-04-05 08:19:11 obarthel Exp $ # # :ts=8 # @@ -105,7 +105,7 @@ WARNINGS = \ INCLUDES = -Iinclude -I. -Inetinclude #OPTIONS = -fno-builtin -fno-common -DDEBUG - OPTIONS = -fno-builtin -fno-common -DNDEBUG + OPTIONS = -fno-builtin -fno-common -DNDEBUG -D__THREAD_SAFE #OPTIONS = -fno-builtin -fno-common -D__MEM_DEBUG #OPTIONS = -fno-builtin -fno-common -DDEBUG -D__MEM_DEBUG -DNO_INLINE_STDARG OPTIMIZE = -O -fomit-frame-pointer -fstrength-reduce -finline-functions diff --git a/library/unistd_chown.c b/library/unistd_chown.c index 2d07dab..a5a6061 100644 --- a/library/unistd_chown.c +++ b/library/unistd_chown.c @@ -1,5 +1,5 @@ /* - * $Id: unistd_chown.c,v 1.10 2006-04-05 06:43:56 obarthel Exp $ + * $Id: unistd_chown.c,v 1.11 2006-04-05 08:19:11 obarthel Exp $ * * :ts=4 * @@ -116,8 +116,8 @@ chown(const char * path_name, uid_t owner, gid_t group) /* Try to find out which owner/group information is currently in use. */ - lock = Lock(path_name,SHARED_LOCK); - if(lock == ZERO || CANNOT Examine(file_lock,fib)) + file_lock = Lock((STRPTR)path_name,SHARED_LOCK); + if(file_lock == ZERO || CANNOT Examine(file_lock,fib)) { PROFILE_ON(); @@ -125,8 +125,8 @@ chown(const char * path_name, uid_t owner, gid_t group) goto out; } - UnLock(lock); - lock = ZERO; + UnLock(file_lock); + file_lock = ZERO; PROFILE_ON();