search for: password_fd

Displaying 2 results from an estimated 2 matches for "password_fd".

2020 Jun 02
0
[PATCH nbdkit 5/5] vddk: Munge password parameters when we reexec (RHBZ#1842440).
...ary file here. + * The trick is described by Eric Blake here: + * https://www.redhat.com/archives/libguestfs/2020-June/msg00021.html + * + * (RHBZ#1842440) + */ + if (strncmp (arg, "password=", 9) == 0) { + char tmpfile[] = "/tmp/XXXXXX"; + char *password_fd; + + /* These operations should never fail, so exit on error. */ + fd = mkstemp (tmpfile); + if (fd == -1) { + nbdkit_error ("mkstemp: %m"); + exit (EXIT_FAILURE); + } + unlink (tmpfile); + if (write (fd, password, strlen (password)) != strlen (...
2020 Jun 02
9
[PATCH nbdkit 0/5] vddk: Fix password parameter.
Probably needs a bit of cleanup, but seems like it is generally the right direction. One thing I've noticed is that the expect test randomly (but rarely) hangs :-( I guess something is racey but I don't know what at the moment. Rich.