Overview
Comment: | fixes |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
00358989c71296ec8bfb459d6cbde865 |
User & Date: | lexi on 2019-07-20 18:12:49 |
Other Links: | manifest | tags |
Context
2019-07-20
| ||
23:37 | udpate xpriv to use sysv shmem by default; give iaia an option to generate its own types, and allow selecting between 7-bit and 8-bit encodings for ascii (defaulting to 8-bit); update mkpw to work with new iaia; update ord to add flag controlling byte length (7 or 8) for iaia's ascii mode check-in: 6a14de1811 user: lexi tags: trunk | |
18:12 | fixes check-in: 00358989c7 user: lexi tags: trunk | |
2019-07-19
| ||
20:50 | fix usage error check-in: 4af59f8377 user: lexi tags: trunk | |
Changes
Modified ord.c from [c1a75e9d61] to [8e7c9355c5].
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
* to use POSIX io primitives (write and read)
* instead of libc primitives (printf). if
* you're on a UNIX system, POSIX primitives
* will be used by default, but you can block
* them with LIBC or force them with POSIX.
* if you are on a POSIX- compliant system,
* you *should* use POSIX IO, for improved
* performance and safety. */
#if (defined(__unix__) && _IO != LIBC) || (_IO == POSIX)
# define _POSIX_IO
#endif
#ifdef _POSIX_IO
# include <unistd.h>
|
| > > > > |
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
* to use POSIX io primitives (write and read) * instead of libc primitives (printf). if * you're on a UNIX system, POSIX primitives * will be used by default, but you can block * them with LIBC or force them with POSIX. * if you are on a POSIX- compliant system, * you *should* use POSIX IO, for improved * performance and safety. TODO: take full advantage of write(2) by storing output in single string & making single write call */ #if (defined(__unix__) && _IO != LIBC) || (_IO == POSIX) # define _POSIX_IO #endif #ifdef _POSIX_IO # include <unistd.h> |
Modified xpriv.c from [bebef73805] to [6369b6f0d6].
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
* will either conjure up a new privileged session, or * switch to one that's already active if it exists. it * does this by first checking for the existence of a * shared memory segment. if it doesn't find it, it * starts a new session; if it *does* find it, it * retrieves the X11 window ID from that shared memory * and sends a _NET_ACTIVE_WINDOW client message to the * root X window. the window manager interprets message, * activating the window. * * the flag -k can also be passed, in which case the * utility instructs the running process to liquidate its * subprocesses and exit itself. * * if the shared memory does not exist, xpriv creates a * new instance of urxvt. this instance is told to run * the command “xpriv -a” instead of the user’s normal * shell. the -a flag instructs xpriv to get the terminal * window’s ID from the $WINDOWID environment variable * which urxvt sets. after this, a ssh-agent process is * launched. spriv waits until it has opened a socket and * then runs ssh-add without parameters to add the user's * default keys to the session. * * after a success key-add has been confirmed, xpriv * marks the window as “vital” by setting the X property * “_k_vital” on the window. if the login fails or does * not complete, safekill.c will still terminate it at |
| | | |
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
* will either conjure up a new privileged session, or * switch to one that's already active if it exists. it * does this by first checking for the existence of a * shared memory segment. if it doesn't find it, it * starts a new session; if it *does* find it, it * retrieves the X11 window ID from that shared memory * and sends a _NET_ACTIVE_WINDOW client message to the * root X window. the window manager interprets the * message, activating the window. * * the flag -k can also be passed, in which case the * utility instructs the running process to liquidate its * subprocesses and exit itself. * * if the shared memory does not exist, xpriv creates a * new instance of urxvt. this instance is told to run * the command “xpriv -a” instead of the user’s normal * shell. the -a flag instructs xpriv to get the terminal * window’s ID from the $WINDOWID environment variable * which urxvt sets. after this, a ssh-agent process is * launched. xpriv waits until it has opened a socket and * then runs ssh-add without parameters to add the user's * default keys to the session. * * after a success key-add has been confirmed, xpriv * marks the window as “vital” by setting the X property * “_k_vital” on the window. if the login fails or does * not complete, safekill.c will still terminate it at |