Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH 00/22] pull: follow-up to chsh, newgrp, and script changes
@ 2014-12-27 17:17 Sami Kerola
  2014-12-27 17:17 ` [PATCH 15/22] script: use signalfd() to catch signals Sami Kerola
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Sami Kerola @ 2014-12-27 17:17 UTC (permalink / raw)
  To: util-linux; +Cc: Sami Kerola

Hi,

As I mentioned in

http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/10390

the previous patch set was not complete.  The script(1) had signals and
io-streams race that is now fixed with changes 0015 to 0018.

The patches below can be also found from my github repository branch
'script'.

https://github.com/kerolasa/lelux-utiliteetit/tree/script


Sami Kerola (22):
  chsh: remove function prototypes
  chfn, chsh: share illegal_passwd_chars() function
  chsh: use getline() to support arbitrarily long lines
  chsh: set few variables read-only and rename one of them
  chsh: allow user to set shell to /bin/sh if none is set
  chsh: clean up parse_argv()
  chsh: rewrite function interacting with user to get path to new shell
  chsh: simplify check_shell()
  chsh: fail get_shell_list() check when /etc/shells cannot be opened
  newgrp: simplify if else clauses
  newgrp: move shell determination closer where it is used
  newgrp: set function arguments read-only when possible
  script: remove function prototypes
  script: add struct script_control and remove global variables
=== end of earlier submission ===
  script: use signalfd() to catch signals
  script: use poll() rather than select()
  script: merge doinput() and output() functions to do_io()
  script: remove io vs signal race
  script: add 'Script started' line always to capture file
  script: move do_io() content to small functions
  script: replace strftime() workaround with CFLAGS = -Wno-format-y2k
  script: use correct input type, move comment, and so on

 login-utils/Makemodule.am |   4 +-
 login-utils/ch-common.c   |  34 ++
 login-utils/ch-common.h   |   6 +
 login-utils/chfn.c        |  16 +-
 login-utils/chsh.c        | 365 +++++++++----------
 login-utils/newgrp.c      |  25 +-
 term-utils/Makemodule.am  |   1 +
 term-utils/script.c       | 866 ++++++++++++++++++++--------------------------
 tests/ts/script/race      |   4 -
 9 files changed, 594 insertions(+), 727 deletions(-)
 create mode 100644 login-utils/ch-common.c
 create mode 100644 login-utils/ch-common.h

-- 
2.2.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-01-06 11:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-27 17:17 [PATCH 00/22] pull: follow-up to chsh, newgrp, and script changes Sami Kerola
2014-12-27 17:17 ` [PATCH 15/22] script: use signalfd() to catch signals Sami Kerola
2014-12-27 17:17 ` [PATCH 16/22] script: use poll() rather than select() Sami Kerola
2014-12-27 17:17 ` [PATCH 17/22] script: merge doinput() and output() functions to do_io() Sami Kerola
2014-12-27 17:17 ` [PATCH 18/22] script: remove io vs signal race Sami Kerola
2014-12-27 17:17 ` [PATCH 19/22] script: add 'Script started' line always to capture file Sami Kerola
2014-12-27 17:17 ` [PATCH 20/22] script: move do_io() content to small functions Sami Kerola
2014-12-27 17:17 ` [PATCH 21/22] script: replace strftime() workaround with CFLAGS = -Wno-format-y2k Sami Kerola
2014-12-27 17:17 ` [PATCH 22/22] script: use correct input type, move comment, and so on Sami Kerola
2015-01-06 11:11   ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox