Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Co-Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Here is a patch that disables linux-specific tools on non-linux targets.
Signed-Off-By: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-Off-By: Karel Zak <kzak@redhat.com>
|
|
Fix strict gcc warnings that come from using:
("-Wall -Wp,-D_FORTIFY_SOURCE=2")
script.c:239: warning: ignoring return value of 'write', declared with attribute warn_unused_result
script.c:330: warning: ignoring return value of 'write', declared with attribute warn_unused_result
script.c:331: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Co-Author: lizf <lizf@cn.fujitsu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
This is done by calling cal with the extra day parameter like:
cal 14 9 1752
Note the tests were updated to use the new syntax.
Note also that this patch changes the -y option
to always print a full year, even if a month or
the -[13] options are specified.
This matches the cal operation from bsdmainutils on debian
and also allows one to print a full year while
highlighting a particular date.
Signed-off-by: Pádraig Brady <P@draigBrady.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
The "doinput" process doesn't make a difference between SIGWINCH and
SIGCHILD. This process also sends unnecessary SIGWINCH to child (the
signal is ignored by child). Fixed.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Avoid this warning from gcc -Wformat:
"format not a string literal and no format arguments".
Signed-off-by: Jim Meyering <jim@meyering.net>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
On Monday 03 September 2007, Karel Zak wrote:
> http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/590/focus=592
>
> I agree that we need a better support for compilation without
> locales, but from my point of view NLS != all locales stuff. The NLS
> support is subset only.
thinking about the input from everyone, i'd propose the attached ...
Only pull in locale.h as needed and move it to the common nls.h.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
namei can't identify FIFO, and it will complain that it's an unknown type.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
|
|
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
|
|
The number of files successfully renamed is calculated and stored in variable
ct, > but actually the variable is not used afterwards.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
|
|
cal support option -V to display version information, but the manpage doesn't
mention it.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
|
|
A chown-like operations are unexpected when you execute "make install"
as non-root user. For example RPM defines owner+permissions in .spec
file -- you needn't to use root account to create useful RPM package.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
script(1) uses three processes (doinput, dooutput and doshell). It's
possible that the shell process is finished before the input and
output processes are completely initialized. For example:
$ script -c "printf Bingo"
In particular case the output and input processes read/write data from
shell process in time when the shell process is already done -- so it
hangs on read().
The second problem is that the output process can finish although
there are unread data from finished shell process -- an output in
the typescript file and on terminal is incomplete!
script(1) has to pass:
$ for i in `seq 1 1000`; do script -q -c "printf 'Bingo\n'"; done | grep -c Bingo
1000
without problems.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
We have PACKAGE_STRING in config.h that includes package name and
version. It's better to use this macro that hardcoded strings.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
* misc-utils/look.1: Clarify the default state of the -d and -f options
Signed-Off-By: Pádraig Brady <P@draigBrady.com>
|
|
script(1) is not consistent and writes "Script started on.." to
scriptfile, although the others messages are ignored when running
with '-q'.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
|
|
Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
This patch allows to override the time() and define a different time by
TEST_TIME env. variable. The code has to be compiled with -DTEST_CAL.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
When system ncurses is built with --with-termlib=tinfo option
then there are two libraries - libtinfo (which contains terminal
related functions) and libncurses (rest).
Correctly link against libtinfo in such case.
Signed-off-by: Arkadiusz Miskiewicz <arekm@maven.pl>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Something like #ifdef __linux__ is non-sense in util-linux where
everything depend on linux.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
This patch make widechar code (cal headers initialization) more
robust. That's possible to format wide char strings by swprintf() and
non-widechar version by sprintf(). This is better than the old
solution with wcscat().
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
This patche:
- removes extra #ifdef-s,
- fixes \n usage when compiled without curses/termcap
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Fixes a segfault for certain values of $TERM
Fixes alignment issues when the highlighted day (today)
is in the last week of the month.
Signed-off-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Wildcards in EXTRA_DIST break "make dist" for vpath build.
But plain directory names are ok.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
|
|
A slightly more concise way to distribute the script "reset".
Signed-off-by: Stepan Kasal <skasal@redhat.com>
|
|
The substitution of @PERL@ is most done with AC_CONFIG_FILES.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
|
|
This is a cleanup of configure.ac removing the internal ac_cv_*
variables.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
|
|
Build lib/*.c individually for each project which uses it, so that the
right set of flags is applied each time.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
|
|
Programs which are usually installed with the setuid bit do need their own
CFLAGS and LDFLAGS. SUID_LDFLAGS is analogic to SUID_CFLAGS.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
|
|
SUID_CFLAGS are not meant to override the makefile-wide AM_CFLAGS.
(We do not use AM_CFLAGS currently, but we will.)
Signed-off-by: Stepan Kasal <skasal@redhat.com>
|
|
The patch allows to define special CFLAGS for typical suid programs
(like mount, umount, chfn, ...). Some distributions use for example
"-fpic" for suid binaries.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
a really minor patch which adds the manpage for scriptreplay.
Signed-Off-By: Matthias Koenig <mkoenig@suse.de>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
for example "$ look apple-pie"
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Also, the patch makes "make mrproper" more robust.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Don't follow the path if a component is not directory. It doesn't make sense
to support something like:
$ touch a b
$ namei a/b <-- where "a" is not directory
The support for infinite loop of symbolic links is a strange wish only. The
stack size is very limited. Try:
$ ln -s x
$ namei x/x
[Migration note: severity="low"]
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
There has been unexpected mix of HAVE_WIDECHAR and ENABLE_WIDECHAR macros. The
ENABLE_WIDECHAR is old version and has to be replaced everywhere otherwise we
will see bugs with multibyte stuff.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
This patch add all missing headers, man pages and README files to automake
stuff and "make dist-gzip" produces useful tarball now.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
The generated autotools stuff shouldn't be maintained by SCM. After check out
from git use ./autogen.sh. For more details see README.devel.
Signed-off-by: Karel Zak <kzak@redhat.com>
|