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 10 * to use POSIX io primitives (write and read) 11 11 * instead of libc primitives (printf). if 12 12 * you're on a UNIX system, POSIX primitives 13 13 * will be used by default, but you can block 14 14 * them with LIBC or force them with POSIX. 15 15 * if you are on a POSIX- compliant system, 16 16 * you *should* use POSIX IO, for improved 17 - * performance and safety. */ 17 + * performance and safety. 18 + 19 + TODO: take full advantage of write(2) by storing 20 + output in single string & making single 21 + write call */ 18 22 19 23 #if (defined(__unix__) && _IO != LIBC) || (_IO == POSIX) 20 24 # define _POSIX_IO 21 25 #endif 22 26 23 27 #ifdef _POSIX_IO 24 28 # include <unistd.h>
Modified xpriv.c from [bebef73805] to [6369b6f0d6].
18 18 * will either conjure up a new privileged session, or 19 19 * switch to one that's already active if it exists. it 20 20 * does this by first checking for the existence of a 21 21 * shared memory segment. if it doesn't find it, it 22 22 * starts a new session; if it *does* find it, it 23 23 * retrieves the X11 window ID from that shared memory 24 24 * and sends a _NET_ACTIVE_WINDOW client message to the 25 - * root X window. the window manager interprets message, 26 - * activating the window. 25 + * root X window. the window manager interprets the 26 + * message, activating the window. 27 27 * 28 28 * the flag -k can also be passed, in which case the 29 29 * utility instructs the running process to liquidate its 30 30 * subprocesses and exit itself. 31 31 * 32 32 * if the shared memory does not exist, xpriv creates a 33 33 * new instance of urxvt. this instance is told to run 34 34 * the command “xpriv -a” instead of the user’s normal 35 35 * shell. the -a flag instructs xpriv to get the terminal 36 36 * window’s ID from the $WINDOWID environment variable 37 37 * which urxvt sets. after this, a ssh-agent process is 38 - * launched. spriv waits until it has opened a socket and 38 + * launched. xpriv waits until it has opened a socket and 39 39 * then runs ssh-add without parameters to add the user's 40 40 * default keys to the session. 41 41 * 42 42 * after a success key-add has been confirmed, xpriv 43 43 * marks the window as “vital” by setting the X property 44 44 * “_k_vital” on the window. if the login fails or does 45 45 * not complete, safekill.c will still terminate it at