Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 218531 Details for
Bug 303579
git fixes for interix (6, mostly)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Source patches to support Interix quirks
git-1.6.6.1-interix-headers.patch (text/plain), 1.86 KB, created by
Greg Turner
on 2010-02-05 14:45:26 UTC
(
hide
)
Description:
Source patches to support Interix quirks
Filename:
MIME Type:
Creator:
Greg Turner
Created:
2010-02-05 14:45:26 UTC
Size:
1.86 KB
patch
obsolete
>--- daemon.c.orig 2010-02-04 23:23:19 -0800 >+++ daemon.c 2010-02-04 23:40:01 -0800 >@@ -14,6 +14,10 @@ > #define NI_MAXSERV 32 > #endif > >+#ifdef __INTERIX >+#include <interix/security.h> >+#endif >+ > static int log_syslog; > static int verbose; > static int reuseaddr; >@@ -914,10 +918,19 @@ > die("unable to allocate any listen sockets on host %s port %u", > listen_addr, listen_port); > >+#ifdef __INTERIX >+ if (pass) >+ if (setuser(pass->pw_name, NULL, SU_COMPLETE) != 0) >+ die("cannot drop privileges"); >+ if (gid && (gid != getgid())) >+ if (setgid(gid) != 0) >+ die("cannot setgid()"); >+#else > if (pass && gid && > (initgroups(pass->pw_name, gid) || setgid (gid) || > setuid(pass->pw_uid))) > die("cannot drop privileges"); >+#endif > > return service_loop(socknum, socklist); > } >--- git-compat-util.h.orig 2010-02-05 00:11:04 -0800 >+++ git-compat-util.h 2010-02-05 00:12:30 -0800 >@@ -93,7 +93,11 @@ > #include <utime.h> > #ifndef __MINGW32__ > #include <sys/wait.h> >+#ifdef __INTERIX >+#include <poll.h> >+#else > #include <sys/poll.h> >+#endif > #include <sys/socket.h> > #include <sys/ioctl.h> > #ifndef NO_SYS_SELECT_H >@@ -105,6 +109,9 @@ > #include <netdb.h> > #include <pwd.h> > #include <inttypes.h> >+#ifdef __INTERIX >+#include <stdint.h> >+#endif > #if defined(__CYGWIN__) > #undef _XOPEN_SOURCE > #include <grp.h> >@@ -448,10 +455,16 @@ > #define ST_CTIME_NSEC(st) ((unsigned int)((st).st_ctimespec.tv_nsec)) > #define ST_MTIME_NSEC(st) ((unsigned int)((st).st_mtimespec.tv_nsec)) > #else >+#ifdef __INTERIX >+/* or is this just a general bug? */ >+#define ST_CTIME_NSEC(st) ((unsigned int)((st).st_ctime.tv_nsec)) >+#define ST_MTIME_NSEC(st) ((unsigned int)((st).st_mtime.tv_nsec)) >+#else > #define ST_CTIME_NSEC(st) ((unsigned int)((st).st_ctim.tv_nsec)) > #define ST_MTIME_NSEC(st) ((unsigned int)((st).st_mtim.tv_nsec)) > #endif > #endif >+#endif > > #ifdef UNRELIABLE_FSTAT > #define fstat_is_reliable() 0
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 303579
: 218531 |
218533