1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- 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.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15151 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2006-09-25 15:38:21 +00:00
parent 9ce2ba234f
commit b1f56b1bbe
4 changed files with 10 additions and 6 deletions

View File

@ -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().

View File

@ -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)
{

View File

@ -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;

View File

@ -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);