diff options
author | Darren Tucker <dtucker@zip.com.au> | 2016-08-02 10:01:52 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-08-02 10:01:52 +1000 |
commit | dd1031b78b83083615b68d7163c44f4408635be2 (patch) | |
tree | 623e682acf27a2abf422a27325e5bbad7c5be4b0 /openbsd-compat/port-irix.c | |
parent | c20dccb5614c5714f4155dda01bcdebf97cfae7e (diff) |
Replace spaces with tabs.
Mechanically replace spaces with tabs in compat files not synced with
OpenBSD.
Diffstat (limited to 'openbsd-compat/port-irix.c')
-rw-r--r-- | openbsd-compat/port-irix.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/openbsd-compat/port-irix.c b/openbsd-compat/port-irix.c index ba751a538..525b02909 100644 --- a/openbsd-compat/port-irix.c +++ b/openbsd-compat/port-irix.c | |||
@@ -47,42 +47,42 @@ void | |||
47 | irix_setusercontext(struct passwd *pw) | 47 | irix_setusercontext(struct passwd *pw) |
48 | { | 48 | { |
49 | #ifdef WITH_IRIX_PROJECT | 49 | #ifdef WITH_IRIX_PROJECT |
50 | prid_t projid; | 50 | prid_t projid; |
51 | #endif | 51 | #endif |
52 | #ifdef WITH_IRIX_JOBS | 52 | #ifdef WITH_IRIX_JOBS |
53 | jid_t jid = 0; | 53 | jid_t jid = 0; |
54 | #elif defined(WITH_IRIX_ARRAY) | 54 | #elif defined(WITH_IRIX_ARRAY) |
55 | int jid = 0; | 55 | int jid = 0; |
56 | #endif | 56 | #endif |
57 | 57 | ||
58 | #ifdef WITH_IRIX_JOBS | 58 | #ifdef WITH_IRIX_JOBS |
59 | jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive"); | 59 | jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive"); |
60 | if (jid == -1) | 60 | if (jid == -1) |
61 | fatal("Failed to create job container: %.100s", | 61 | fatal("Failed to create job container: %.100s", |
62 | strerror(errno)); | 62 | strerror(errno)); |
63 | #endif /* WITH_IRIX_JOBS */ | 63 | #endif /* WITH_IRIX_JOBS */ |
64 | #ifdef WITH_IRIX_ARRAY | 64 | #ifdef WITH_IRIX_ARRAY |
65 | /* initialize array session */ | 65 | /* initialize array session */ |
66 | if (jid == 0 && newarraysess() != 0) | 66 | if (jid == 0 && newarraysess() != 0) |
67 | fatal("Failed to set up new array session: %.100s", | 67 | fatal("Failed to set up new array session: %.100s", |
68 | strerror(errno)); | 68 | strerror(errno)); |
69 | #endif /* WITH_IRIX_ARRAY */ | 69 | #endif /* WITH_IRIX_ARRAY */ |
70 | #ifdef WITH_IRIX_PROJECT | 70 | #ifdef WITH_IRIX_PROJECT |
71 | /* initialize irix project info */ | 71 | /* initialize irix project info */ |
72 | if ((projid = getdfltprojuser(pw->pw_name)) == -1) { | 72 | if ((projid = getdfltprojuser(pw->pw_name)) == -1) { |
73 | debug("Failed to get project id, using projid 0"); | 73 | debug("Failed to get project id, using projid 0"); |
74 | projid = 0; | 74 | projid = 0; |
75 | } | 75 | } |
76 | if (setprid(projid)) | 76 | if (setprid(projid)) |
77 | fatal("Failed to initialize project %d for %s: %.100s", | 77 | fatal("Failed to initialize project %d for %s: %.100s", |
78 | (int)projid, pw->pw_name, strerror(errno)); | 78 | (int)projid, pw->pw_name, strerror(errno)); |
79 | #endif /* WITH_IRIX_PROJECT */ | 79 | #endif /* WITH_IRIX_PROJECT */ |
80 | #ifdef WITH_IRIX_AUDIT | 80 | #ifdef WITH_IRIX_AUDIT |
81 | if (sysconf(_SC_AUDIT)) { | 81 | if (sysconf(_SC_AUDIT)) { |
82 | debug("Setting sat id to %d", (int) pw->pw_uid); | 82 | debug("Setting sat id to %d", (int) pw->pw_uid); |
83 | if (satsetid(pw->pw_uid)) | 83 | if (satsetid(pw->pw_uid)) |
84 | debug("error setting satid: %.100s", strerror(errno)); | 84 | debug("error setting satid: %.100s", strerror(errno)); |
85 | } | 85 | } |
86 | #endif /* WITH_IRIX_AUDIT */ | 86 | #endif /* WITH_IRIX_AUDIT */ |
87 | } | 87 | } |
88 | 88 | ||