Bugzilla – Attachment 65 Details for
Bug 208
SCO build/runtime fixes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cvs diff of "works on SCO 3.2v4" vs. -current
sco.patch (text/plain), 1.39 KB, created by
Gert Doering
on 2002-04-08 07:30:04 AEST
(
hide
)
Description:
cvs diff of "works on SCO 3.2v4" vs. -current
Filename:
MIME Type:
Creator:
Gert Doering
Created:
2002-04-08 07:30:04 AEST
Size:
1.39 KB
patch
obsolete
> >--- sftp-server.c 13 Feb 2002 03:05:00 -0000 1.38 >+++ sftp-server.c 7 Apr 2002 10:34:19 -0000 >@@ -590,9 +590,16 @@ > a = get_attrib(); > TRACE("setstat id %d name %s", id, name); > if (a->flags & SSH2_FILEXFER_ATTR_SIZE) { >- ret = truncate(name, a->size); >+ int fd = open(name, O_RDWR ); >+ if ( fd < 0 ) >+ status = errno_to_portable(errno); >+ else >+ { >+ ret = ftruncate(fd, a->size); > if (ret == -1) > status = errno_to_portable(errno); >+ close(fd); >+ } > } > if (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) { > >diff -u -w -r1.41 entropy.c >--- entropy.c 11 Mar 2002 00:16:35 -0000 1.41 >+++ entropy.c 7 Apr 2002 10:34:17 -0000 >@@ -85,9 +85,10 @@ > close(devnull); > > if (original_uid != original_euid && >- setuid(original_uid) == -1) { >- fprintf(stderr, "(rand child) setuid: %s\n", >- strerror(errno)); >+ ( seteuid(getuid()) == -1 || >+ setuid(original_uid) == -1) ) { >+ fprintf(stderr, "(rand child) setuid(%d): %s\n", >+ original_uid, strerror(errno)); > _exit(1); > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 208
: 65 |
90