diff --git a/library/changes b/library/changes index bb21db7..c819d34 100644 --- a/library/changes +++ b/library/changes @@ -1,3 +1,7 @@ +- The SetOwner() fall-back code for Kickstart 2.04 was passing the wrong + parameters to the file system. The first (dp_Arg1) should have been + zero. Ouch. + - basename() is not supposed to modify the string it is passed and should return a pointer to a string which can be modified. Now it does. Same thing for dirname(). diff --git a/library/socket_ioctl.c b/library/socket_ioctl.c index 573638b..c4a4d25 100644 --- a/library/socket_ioctl.c +++ b/library/socket_ioctl.c @@ -1,5 +1,5 @@ /* - * $Id: socket_ioctl.c,v 1.12 2006-09-21 09:24:20 obarthel Exp $ + * $Id: socket_ioctl.c,v 1.13 2006-09-25 15:38:21 obarthel Exp $ * * :ts=4 * @@ -89,7 +89,7 @@ ioctl(int sockfd,int request, ... /* char *arg */) if(result == 0) { - int * option = (int *)param; + const int * option = (const int *)param; if(request == (int)FIONBIO) { diff --git a/library/stdio_fwrite.c b/library/stdio_fwrite.c index 9326378..1e039de 100644 --- a/library/stdio_fwrite.c +++ b/library/stdio_fwrite.c @@ -1,5 +1,5 @@ /* - * $Id: stdio_fwrite.c,v 1.10 2006-01-08 12:04:24 obarthel Exp $ + * $Id: stdio_fwrite.c,v 1.11 2006-09-25 15:38:21 obarthel Exp $ * * :ts=4 * @@ -104,7 +104,7 @@ fwrite(const void *ptr,size_t element_size,size_t count,FILE *stream) if(element_size > 0 && count > 0) { - unsigned char * data = (unsigned char *)ptr; + const unsigned char * data = (unsigned char *)ptr; unsigned char c; int buffer_mode; size_t total_bytes_written = 0; diff --git a/library/unistd_fchown.c b/library/unistd_fchown.c index 57ead8a..f31fe4b 100644 --- a/library/unistd_fchown.c +++ b/library/unistd_fchown.c @@ -1,5 +1,5 @@ /* - * $Id: unistd_fchown.c,v 1.13 2006-04-05 06:43:56 obarthel Exp $ + * $Id: unistd_fchown.c,v 1.14 2006-09-25 15:38:21 obarthel Exp $ * * :ts=4 * @@ -163,7 +163,7 @@ fchown(int file_descriptor, uid_t owner, gid_t group) new_name->name[0] = len; memmove(&new_name->name[1],fib->fib_FileName,len); - success = DoPkt(dvp->dvp_Port,ACTION_SET_OWNER,dvp->dvp_Lock,MKBADDR(new_name),(LONG)((((ULONG)owner) << 16) | (ULONG)group),0,0); + success = DoPkt(dvp->dvp_Port,ACTION_SET_OWNER,0,dvp->dvp_Lock,MKBADDR(new_name),(LONG)((((ULONG)owner) << 16) | (ULONG)group),0); error = IoErr(); FreeDeviceProc(dvp);