Commit Graph

12287 Commits

Author SHA1 Message Date
dholland 7f7f549599 Make the parser state opaque. While here, fix a memory leak when using
the [:foo:] syntax.
2013-08-11 00:04:14 +00:00
dholland d05d2aa5a7 Expose less of the parser state outside str.c. 2013-08-10 23:54:41 +00:00
sjg 7f708505a0 ParseGetLine: don't treat a zero byte as end of buffer if P_end says it isn't.
Consume up to next newline, and issue a parse warning.
If no newline found before P_end, carry on as before.
2013-08-10 21:20:03 +00:00
dholland 3c77b25ade punctuation usage 2013-08-10 20:59:27 +00:00
sjg ac8c620987 Move the call to Job_SetPrefix() to Job_Init() so that
makefiles have had a chance to set .MAKE.JOB.PREFIX
2013-08-04 16:48:15 +00:00
sjg bd8f3e806f Allow an empty .MAKE.JOB.PREFIX to supress output of --- job --- tokens 2013-07-30 19:09:57 +00:00
joerg 349a581e92 Mark the dead. 2013-07-30 15:10:04 +00:00
pgoyette d96eb15780 fferentiate zegrep and zfgrep by their basename only, so they can be
invoked with a pathname (ie, /usr/bin/z{e,f}grep).

OK wiz@
2013-07-25 12:25:23 +00:00
wiz a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
uwe 2a44517182 Constify some more. 2013-07-19 05:05:59 +00:00
uwe 4e29a793cc Spell "keywords" without space. Fix couple of typos. 2013-07-19 04:59:46 +00:00
uwe 6a118683e9 manual_find_buildkeyword() - now that we control the format string, we
may use asterisk precision specification instead of temporary
modifying the _build string itself.
2013-07-19 04:55:05 +00:00
uwe 6fed3e8105 Fix manual_find_buildkeyword() to not use non-literal printf format. 2013-07-19 04:18:10 +00:00
uwe fd25be260e Use -Wno-format-nonliteral instead of blanket -Wno-format. 2013-07-19 04:17:02 +00:00
matt c9855651f8 Add stub port for evbcf which has enough to do a distribution build. 2013-07-18 22:08:59 +00:00
matt 105794b79c Use ${MACHINE_CPU} == "m68k" 2013-07-18 21:11:47 +00:00
matt 611b1a73a0 Make sure fdformat is on m68k (even sun2) 2013-07-18 21:03:07 +00:00
uwe 887d84a8cf Don't access memory outside the array if tmpdirlen == 0. 2013-07-18 16:33:31 +00:00
christos f75400a6b8 use -Wno-format and revert "fixstring" 2013-07-18 16:28:52 +00:00
christos 532207c739 Set the string to NUL instread of providing an new empty string (from uwe) 2013-07-18 16:01:25 +00:00
christos ef965bff9b WARNS=6
- fix cast qual issues
- don't use snprintf on a user-provided buffer
2013-07-18 15:39:08 +00:00
sjg 11a6c9d08b From bmake: move decl of pwd nearer to where it is used so the whole
thing can be ifdef'd out without causing unused variable errors.
2013-07-18 15:31:49 +00:00
uwe a2ec5e5863 Revert previous; other errors from WARNS=3 obscured the error in jump(). 2013-07-18 04:05:32 +00:00
uwe d7a42acd68 Constify jump() arguments appropriately. 2013-07-18 04:02:31 +00:00
uwe e0d6c9b51f Move manstate::pagerlen so that its "length of the above" comment makes sense. 2013-07-18 03:48:22 +00:00
uwe 3403b722b4 whatis.db is no more, so don't mention its location in FILES. 2013-07-18 03:40:31 +00:00
uwe db23d137fa Remove unnecessary line wrap. 2013-07-18 03:38:25 +00:00
sjg af0aba95fb When a var is set in the CMD context, it prevents the same name
being set in GLOBAL context.  We should also delete any such
variable in GLOBAL context, else make -V will show the wrong value.
2013-07-16 20:00:56 +00:00
sjg 7217d3f346 Fix unit-tests to cope with recent change to progname 2013-07-16 19:59:28 +00:00
christos b294e9655c WARNS=6 2013-07-16 17:48:22 +00:00
christos 17cdc7e70d use bmake_foo instead of efoo() 2013-07-16 14:22:13 +00:00
christos 4f413ffa5d More gmake compatibility:
1. add -w flag to print Entering and Leaving directory name the the beginning
   and the end of processing.
2. export MAKELEVEL=$((MAKELEVEL + 1)) only in the child environment.
3. when printing error messages, prefix them with the program name [$MAKELEVEL]
   for $MAKELEVEL > 0
4. if $MAKEFLAGS consists only of letters assume it is a set of flags (as
   allowed by posix), convert them to -f -l -a -g -s, so that they get parsed
   properly.
With those fixes gmake -> bmake -> gmake -> bmake etc. works as expected.
2013-07-16 14:00:53 +00:00
christos 76db28c1cd Make this work again like gmake. sjg: see the test program. 2013-07-15 20:33:11 +00:00
joerg 2a9957221e Fix description of hex encoding. 2013-07-15 18:46:47 +00:00
sjg 3eb72d30de For .MAKE.LEVEL.ENV use VAR_CMD so updates are ignored 2013-07-09 18:44:41 +00:00
sjg b834173368 Set .MAKE.LEVEL.ENV to the name of the env variable used to communicate
the recursion level to sub-makes.
2013-07-09 18:13:14 +00:00
sjg 58ba636624 If using gmake's MAKELEVEL; use it the same way 2013-07-06 18:19:17 +00:00
sjg db7ba27731 If commandShell hasErrCtl is true, set shellErrFlag for use by
CompatRunCommand() so that behavior in jobs and compat mode
remains consistent.
2013-07-05 22:14:56 +00:00
joerg c664b621d8 Swap order of _CITRUS_LC_MONETARY_SYM_INT_N_CS_PRECEDES and
_CITRUS_LC_MONETARY_SYM_INT_P_SEP_BY_SPACE to match data files.
2013-07-04 11:36:17 +00:00
riastradh a7f90b2fd2 Fix races in /dev/u?random initialization and accounting.
- Push /dev/random `information-theoretic' accounting into cprng(9).
- Use percpu(9) for the per-CPU CPRNGs.
- Use atomics with correct memory barriers for lazy CPRNG creation.
- Remove /dev/random file kmem grovelling from fstat(1).
2013-07-01 15:22:00 +00:00
christos 865e3e8f40 PR/47973: Justin Cormack: build uses <sys/signal.h> not in POSIX 2013-06-29 15:19:32 +00:00
mlelstv 9adb142f7d Change to home directory only after setting the full user context
to avoid issues with NFS or other user-mapped mounts that don't
give root the privilege to chdir there.
2013-06-29 05:08:35 +00:00
christos 8e33b891d8 prevent re-entry race and crash 2013-06-28 17:36:18 +00:00
joerg 9e69720425 Fix violations of the sequence point rule. 2013-06-28 15:04:35 +00:00
wiz a87a4e005d Prefer Aq to \*[Lt] etc. 2013-06-28 10:13:18 +00:00
jdf eb2a9790dd * adjust indentation of list block
* fix capitalization
 * remove superfluous word ('The')

Patch supplied by Bug Hunting.
2013-06-27 21:55:10 +00:00
agc 6a34c4426f fix a typo 2013-06-26 20:20:36 +00:00
wiz 46ad464f12 Remove trailing whitespace. 2013-06-25 07:08:10 +00:00
sjg adfd644b2f Add .MAKE.META.IGNORE_PATHS to facilitate local additions to the paths
which should be ignored by meta_oodate().
2013-06-25 00:20:54 +00:00
sjg 8d830c54ea Ignore any files in /proc/ 2013-06-24 21:16:02 +00:00
riastradh 6290b0987e Rework rndsink(9) abstraction and adapt arc4random(9) and cprng(9).
rndsink(9):
- Simplify API.
- Simplify locking scheme.
- Add a man page.
- Avoid races in destruction.
- Avoid races in requesting entropy now and scheduling entropy later.

Periodic distribution of entropy to sinks reduces the need for the
last one, but this way we don't need to rely on periodic distribution
(e.g., in a future tickless NetBSD).

rndsinks_lock should probably eventually merge with the rndpool lock,
but we'll put that off for now.

cprng(9):
- Make struct cprng_strong opaque.
- Move rndpseudo.c parts that futz with cprng guts to subr_cprng.c.
- Fix kevent locking.  (Is kevent locking documented anywhere?)
- Stub out rump cprng further until we can rumpify rndsink instead.
- Strip code to grovel through struct cprng_strong in fstat.
2013-06-23 02:35:23 +00:00
christos f9bc1aff9f - don't re-use the va list twice, leads to coredumps.
- introduce and use a "safe" version of pam_strerror(3) that does not return
   NULL
2013-06-20 20:54:02 +00:00
martin a4110c4cbe Not all pointers are 64bit - use uintptr_t instead of uint64_t. 2013-06-20 10:43:18 +00:00
christos 08c3d981c5 Don't use -P as a kmem printer, verify that the address points to a pcb first! 2013-06-19 21:12:03 +00:00
sjg 8ae5585417 Use a #define for the variable name we put in environment to pass .MAKE.LEVEL
in case we don't want to use gmake's MAKELEVEL in a different way.
2013-06-18 20:06:09 +00:00
sjg 339d4acb06 Fix use after free bug.
Parse_SetInput:
curFile->fname was using the buffer passed to it - which ReadMakefile frees.
This change makes the comment in ParseEOF about leaking curFile->fname true.
2013-06-18 19:31:27 +00:00
christos 263238eca4 put back previous change 2013-06-10 20:24:58 +00:00
joerg f43bb6a704 Document section stripping. 2013-06-10 19:40:53 +00:00
joerg e2a82ef2e5 Revert last, it doesn't even build. 2013-06-10 19:07:09 +00:00
joerg 4619e36982 Strip .eh_frame and .eh_frame_hdr from crunched binaries. 2013-06-10 18:27:30 +00:00
christos 8e6bfe4b71 1. Don't export .MAKE.LEVEL, because this is an illegal variable name for
some shells; export MAKELEVEL like gmake(1) does.
2. It is absurd for the environment variable to be one greater than the
   make variable!?!?! To wit...
   printf 'all:\n\t@echo ${.MAKE.LEVEL}; printenv .MAKE.LEVEL' | make -f -
2013-06-10 16:46:19 +00:00
joerg 8ca7e152f2 If /usr/bin/cpp is not executable and RPCGEN_CPP was not set, try
/usr/bin/clang-cpp. This allows rpcgen to work in a clang-only release
build. Document hack to be resolved when the final decision about
/usr/bin/cpp and friends is made.
2013-06-05 13:54:26 +00:00
sjg c2bb7dcfaf JobCreatePipe: do fcntl() *after* any fiddling of fd's
to avoid leaking descriptors.
Job_ServerStart: set closed on exec for jp_0 and jp_1.
2013-06-05 03:59:43 +00:00
wiz d9f4f0b529 Formatting fix. 2013-06-03 21:59:41 +00:00
dholland 5cb2af665c prenice (like pgrep and pkill) won't match itself. Also fix nearby typo.
Bump date. From Ted Unangst in PR 47880.
2013-06-03 20:44:01 +00:00
christos 39b77304e7 PR/47877: Michael van Elst: Disable and enable software flow control properly 2013-06-02 13:18:12 +00:00
wiz 72c9578c5d Expand "it's", and fix fix convention notation.
From Bug Hunting.
2013-05-29 15:08:30 +00:00
wiz d1e02d4ffe - Reference tr(1) in `SEE ALSO' section;
- bump date.

From Bug Hunting.
2013-05-29 15:05:43 +00:00
wiz 8e553084e0 - Improve wording and punctuation;
- use `.Ex' macro for `EXIT STATUS' section;
- add `SEE ALSO' section, referencing (back) dd(1) and sed(1);
- bump date.

From Bug Hunting.
2013-05-29 15:04:37 +00:00
wiz 2767d6c8a8 - Remove redundant argument to non-first `.Nm' macro;
- reference `-u' at `-c', to make more clear that the former can
  be used with the latter;
- bump date.

From Bug Hunting.

While here, use Aq.
2013-05-29 15:00:35 +00:00
sjg f30350f125 Clean up some left overs 2013-05-29 00:23:31 +00:00
christos 00ce62b685 0 == local 2013-05-24 23:09:45 +00:00
christos e2bd819f6a improve wording 2013-05-22 19:35:11 +00:00
christos 689b483c53 put a note on what FRC means. 2013-05-22 19:30:35 +00:00
jnemeth d294950c6a add release dates for 6.0.1 and 6.1 2013-05-22 01:29:59 +00:00
sjg 2987902a0c We cannot skip all Suff processing for .PHONY targets,
else, srcs which are wildcards do not get expanded as needed.
2013-05-18 13:13:34 +00:00
sjg aea6f93e2d Var_Delete: expand name if needed. 2013-05-18 13:12:45 +00:00
sjg 5410a37e87 New compiler doesn't like foo() 2013-05-16 21:56:56 +00:00
rodent 24964ef3d1 conform -> conforms - this is the file that was supposed to be changed.
apb@ was right about iconv(3).
2013-05-12 12:25:12 +00:00
christos 05f0356f93 commit test 2013-05-10 15:41:44 +00:00
christos 386c53c1fd cvs test 2013-05-10 15:40:21 +00:00
christos 913c2b066a sort 2013-05-10 15:31:22 +00:00
christos d5f24c2bef Simplify previous: instead of polluting the whole code with extra arguments
and dealing with byteorder, do the whole thing in where we need it.
2013-05-08 00:34:50 +00:00
christos 16c1b372e4 print the port where the server is listening when displaying status. 2013-05-07 21:41:51 +00:00
christos 28ad8d2d4f include symver.c 2013-05-07 13:00:35 +00:00
riastradh 31eb87b9b9 Make partial read/write error messages more consistent in vndcompress. 2013-05-06 22:53:24 +00:00
jdf c21f9d1234 Fix capitalisation (again, last time the wrong sentence). 2013-05-06 13:44:17 +00:00
jdf 65965ffb43 * Remove OPTIONS section (uncommon) and put options to the DESCRIPTION.
* Fix capitalisation.

Patch supplied by Bug Hunting.
2013-05-06 11:00:16 +00:00
lukem fc12eae8b6 Version 20130220: restart fix, SYST response parsing improvement 2013-05-05 10:40:19 +00:00
riastradh 4b4929c1fa Add __printflike to vsnprintf_ss. 2013-05-04 15:37:39 +00:00
riz e3748ff50d 'unsigned long' prints with %lu, not %zu. 2013-05-04 15:27:39 +00:00
riastradh 2552c7f866 Add -l option to synopsis for vndcompress(1) man page. 2013-05-04 14:34:13 +00:00
riastradh 2f16fbbee5 Fix sign-compare in compress_blocks.
Not sure why my builds didn't reveal this one -- they revealed
several others during development.
2013-05-04 14:29:48 +00:00
joerg 72bd42b73b __printflike for vwarnx_ss, __dead for err_ss and errx_ss. 2013-05-04 10:21:27 +00:00
wiz 5d2fa123b0 Sort. Add EXIT STATUS section. 2013-05-04 07:13:23 +00:00
uebayasi 1a3fcd0b6a find(1): Compare timestamp in nsec scale in -anewer/-cnewer/-newer. 2013-05-04 06:29:32 +00:00
riastradh 85bbc49a09 Rewrite vndcompress to support SIGINFO and restart after interrupt.
Make it generally more robust in the process.

No objection (or comment) on tech-userlevel.

ok christos
2013-05-03 23:28:15 +00:00
christos f675af4a4b PR/47789: Eitan Adler: small nits 2013-05-01 20:53:59 +00:00
wiz 066e923046 Add EXIT STATUS section. From Ryan Kavanagh via jmc@openbsd.
Bump date. Remove unnecessary quotes.

XXX: The behaviour is now documented as-is, but it is weird.
"biff n; biff y" has an exit status of 1 because biff reports the
notification status when it was started, not after it has finished.
{Free,Open}BSD's biff behave the same, but it's unclear if it's intended
or a bug.
2013-04-28 12:43:51 +00:00
njoly 6808baeb15 Move .Op macro to its own line. Fix SYNOPSIS rendering with mandoc. 2013-04-26 17:12:10 +00:00
matt 1c3095e278 If earm, include from lib/libexecinfo for unwind.h 2013-04-25 07:12:46 +00:00
christos ba8c9169d1 make NOSTRICT behave the same a LINTED; use the new format. 2013-04-19 18:51:14 +00:00
christos 4d5c8627ad document LINTEDn 2013-04-19 18:46:50 +00:00
christos 32c6bb3802 Allow linted comments to take an argument that defines which error to suppress. 2013-04-19 17:43:05 +00:00
christos 7ed35ab90d PR/47744: Frank Kardel: netstat -s stops output prematurely when ipsec is not
compiled.
If the first sysctl fails return silently.
XXX: pullup-6
2013-04-15 21:20:39 +00:00
wiz 924b1b5820 correct spelling is "Christiaan Huygens"; from James J. Lippard
via jmc@openbsd
2013-04-14 08:03:15 +00:00
wiz 667b1ee949 Remove second NetBSD RCS Id. 2013-04-07 17:43:01 +00:00
jdf 4931818ff5 * Create separate section with macro for EXIT STATUS
* Additionally reference join(1)
Patch supplied by Bug Hunting.
2013-04-07 17:40:16 +00:00
jdf 2c8eda201a * Punctuation
* Create separate section with macro for EXIT STATUS
Patch supplied by Bug Hunting.
2013-04-07 17:37:45 +00:00
uebayasi b8042039ef * Don't re-generate kdump-ioctl.c during install.
* Don't expand hundreds of *.h paths into a variable and command-line in !=.
  Lazily handle it the glob instead.
2013-04-06 13:48:12 +00:00
dsl b6465c5d37 Extract a base list of .h files from the set lists instead of looking
at the current contents of ${DESTDIR}.
Ignore missing files and also depend on the set lists themselves.
Should stop the build breaking here if there are extra files in DESTDIR (etc).
NB: The order of the .h files matters somewhat. Probably works by luck.
2013-04-04 22:35:28 +00:00
dsl 5df8622daf Output a blank line between the fixed and variable #include lines.
Just a little hint that they come from different places.
2013-04-04 22:32:12 +00:00
sjg e570fc4070 Refine the effect of .OODATE on command comparison.
Rather than apply it to the whole script, just the current command line
is affected.   This allows a trick like ${.OODATE:M.NOMETA_CMP}
to cause command comparison to be supressed for one command only.
2013-03-31 05:49:51 +00:00
rkujawa 372c45d52b Work around "variable might be clobbered by longjmp" gcc warning when compiling with CPUFLAGS=-march=armv7. Should be fixed properly one day... 2013-03-29 18:53:21 +00:00
njoly d1f2d0ccef Remove unknown \*(tN and \*(sP macros.
ok wiz.
2013-03-28 22:54:25 +00:00
christos df71b4bc46 PR/32591: JuanRP: Also remove the file we are going to be building to prevent
it from being used as input.
2013-03-26 20:58:35 +00:00
christos 267163496c PR/47689: rudolf: reference to sendmail(8) instead of (1) in vacation(1) 2013-03-24 21:00:22 +00:00
sjg dd4c105ae6 After removing an entry from missingFiles,
set ln=NULL after Lst_Remove() to make it clear we won't use it
after this point.
2013-03-23 23:39:47 +00:00
sjg 03ce90ebea If built with filemon support, set .MAKE.PATH_FILEMON to _PATH_FILEMON
so that makefiles can test for it.
2013-03-23 05:31:29 +00:00
sjg a577c98aa7 Add unit-test for export-env and gmake export 2013-03-22 16:36:46 +00:00
sjg cb29a22065 ParseGmakeExport: terminate variable at '=', or setenv(3) will fail
on some systems.
2013-03-22 16:07:59 +00:00
macallan da8b2f53fd apply kludge to make this more or less work on mips64 with n32 userland
with this ldd can handle both 64 and n32 binaries ( previously it would do 64
only ), o32 support is still broken
Someone more familiar with this code needs to fix this properly.
2013-03-20 15:18:42 +00:00
uwe 92646e4a5d Bump date for previous (PR #45981): the change ("c") command starts a
new cycle.
2013-03-17 21:13:04 +00:00
uwe 136610e484 The change ("c") command should start a new cycle.
Apply one line patch I posted in PR #45981 and document this in the
manual page.
2013-03-17 21:02:54 +00:00
njoly 1499b19eca Add missing .El macro. 2013-03-14 19:17:23 +00:00
christos d8eb8720ff Document more environment settings. 2013-03-09 19:43:20 +00:00
christos 4b1752e245 undo previous; mail never expanded $ variables in folder. 2013-03-09 19:43:07 +00:00
christos b209824667 since we are calling realpath() earlier now, we need to expand the name
of the folder in case it contained variables like $HOME.
2013-03-06 20:49:20 +00:00
yamt e9b3c9231f use more appropriate types
remove unnecessary casts
2013-03-06 11:44:11 +00:00
christos ed82ee44b4 Add a .STALE special target that gets invoked when dependency files contain
stail entries.
2013-03-05 22:01:43 +00:00
christos f5b1598c2a Conditionally include the depend files. 2013-03-05 21:57:47 +00:00
christos a11ae36917 Keep track of the location where a dependency is defined, so we can report
about it.
2013-03-05 02:04:10 +00:00
christos dc18bf8e97 add -i and -v 2013-03-05 01:59:56 +00:00
christos c71dc22c13 obey constcond to !constcond 2013-03-02 21:25:12 +00:00
wiz 60accb90d6 Sync usage with man page. 2013-03-02 18:37:19 +00:00
christos 89915ce049 PR/47584: Steffen Daoden: Add option to turn off Nagle to rlogin 2013-03-02 16:35:17 +00:00
joerg e240adbd0b Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
christos 00db437ab4 update dates, version 2013-02-27 20:12:44 +00:00
christos 9208117e65 PR/45042: Thomas Cort: HAVE_foo for setrlimit(2) and setpgid(2) 2013-02-26 00:45:27 +00:00
dholland 21fc2b5d09 Fix obvious typo. 2013-02-25 01:57:14 +00:00
dholland b3e2273034 typo in comment 2013-02-25 00:15:09 +00:00
christos 34b0d22580 While it is nice to have the same function do both the upper case and
lower case conversion, it ends up eating 4% of the total time we spend
in make calling tolower() while building libc.
2013-02-24 19:43:37 +00:00
christos 964e4f5784 fix restart from anon ymous 2013-02-23 13:47:36 +00:00
christos b2db3f8741 use MB_LEN_MAX directly instead of assuming how large it is. 2013-02-20 17:04:45 +00:00
christos 3157acd0cf PR/47577: Steffen "Daode" Nurpmeso: Refinement to previous to keep always
keep track of the folder when it is updated.
2013-02-20 14:38:13 +00:00
ws da101daed1 It helps to separate arguments from the query.
While still suboptimal (you cannot use all the queries specified for .DE),
at least this way we don't get cryptic error messages for standard queries.
2013-02-20 09:27:52 +00:00
dsl 41b0a909cc When using the response to SYST to decide whether to default to 'binary'
be a lot less specific.
Kyocera printers report "230 Linux" but really don't want text transfers
of pdf files!
2013-02-19 23:29:15 +00:00
christos b078433469 PR/47577: Steffen "Daode" Nurpmeso: Keep a resolved folder name together
with a display name in order to keep track of current state when the directory
is changed.
2013-02-19 17:43:32 +00:00
christos 47281a37ea rename enum_t to avoid rpc/types.h lossage. 2013-02-17 01:26:19 +00:00
christos 051dc4b05d we need utsname all the time. 2013-02-16 02:39:27 +00:00
christos 3241ce1c02 Set .MAKE.OS to utsname.sysname so we can tell bogus OS's apart early in
the build process.
2013-02-16 02:11:11 +00:00
christos 96689e7ed9 More fixes from J.R. Oldroyd:
- I have added a call to memset() to clear the mbibuff on
  each loop.  Since we're dealing with possibly broken
  multibyte sequences, clearing it will avoid problems with
  a new input sequence possibly being confused by extra
  bytes still there from the last iteration.  wctomb(),
  which is used to fill that buffer, does not append a NUL.

- I have added a (char) cast when copying single bytes into
  the input buffer after a multibyte conversion error.

- In the call to strvisx() the count must be 1, not mbilen
  which can be 2 or 3 etc for a multibyte character.  This
  value is a count of characters - not bytes - to process.
  It even says characters in the man page.  In vis(3) I
  am interpreting this value to mean multibyte characters.
2013-02-15 00:29:44 +00:00
christos ba2b5111fb PR/47657: Steffen "Daode" Nurpmeso: quoted printable CTE exceeds RFC limit.
- Encapsulated all the content-transfer-encoding stuff in mime_codecs.c
- Replaced calls of strtol(3) with a handcrafted version that allows simple
  error checking by testing the return value. This allows to easily add
  special code to handle illegal QP sequences.
2013-02-14 18:23:45 +00:00
christos 0439e62143 do the encoding character by character instead of failing on encoding mismatch 2013-02-14 14:00:00 +00:00
wiz 6bb4dc54f9 Mark up LC_CTYPE with Ev (didn't I just do this? :) ). 2013-02-14 08:56:59 +00:00
christos 4d0631d87c Keep the built-in support for passwd -k, but don't make the kpasswd link or
install the kpasswd man page since these are provided by heimdal. I ifdef'ed
them so that the code to install them is still with the Makefile.
2013-02-13 23:19:14 +00:00
christos 652899b7c1 don't allow NULL for extra 2013-02-13 22:28:41 +00:00
christos ff77c2a8d2 Multi-byte docs and fixes for > 2 mblen charsets from J.R. Oldroyd 2013-02-13 22:24:48 +00:00
christos c10d89b681 handle EILSEQ. 2013-02-13 13:58:44 +00:00
christos 6db0248c67 handle wide chars 2013-02-13 04:52:31 +00:00
christos 29d24e71d6 don't build kpasswd; heimdal does it for us. 2013-02-11 23:11:48 +00:00
christos ecb1daed9a put back soelim, if MKGROFF is no so that we don't break the sets. 2013-02-11 17:24:21 +00:00
christos ed97a32994 Don't build and install soelim anymore, because it got overwritten
anyway by the groff one and messed up the mtree unprived sets. If
we want to switch back to ours, we should probably add the extra
flags GNU added first.
2013-02-11 17:14:23 +00:00
jakllsch 556f85a303 "dcl" is not "dc1".
Fixes PR#47547
2013-02-09 02:49:36 +00:00
wiz 6ba5c58891 Add serial commas.
From Bug Hunting.
2013-02-08 12:50:51 +00:00
tron b981f2c3d3 Don't crash if "flock" is used to lock a file descriptor e.g. via
"flock --nb 8".
2013-02-07 13:57:40 +00:00
christos ed82bc80db merry belated x-mas. 2013-02-06 16:37:20 +00:00
christos c5e748dd3a fix broken logic:
- poll can return EINTR, it is not restartable like read/write
- check poll return
- it does not make sense to check readyfd() is nready < 0
- check read return
- always call Job_CatchChildren, it is harmless
- short circuit scanning of the poll array if we got all the ready descriptors
2013-02-06 16:36:01 +00:00
roy a6aba8c961 Use putp(3) to output our strings.
Fixes PR lib/47532
2013-02-05 11:31:56 +00:00
christos 0b10d223d4 tools build is non-c-99 2013-02-02 15:24:08 +00:00
christos 74d93a2aa9 avoid the long shadow of i 2013-02-02 15:12:25 +00:00
christos 4b11b0a47f Don't wait forever for output from a child job. 2013-02-02 15:11:48 +00:00
wiz 405ebbdc66 Add comma after i.e.
From Bug Hunting.
2013-01-31 23:09:06 +00:00
joerg a81d4ca32f bdz -> bpz to match the initials of the authors. 2013-01-31 16:32:02 +00:00
wiz b5609ab012 Add comma after i.e.
From Bug Hunting.
2013-01-29 09:30:11 +00:00
apb 325671c8e2 Support both "-" and "/dev/stdout" as references to standard
output.  Add comments about what POSIX says regarding stdout.
Also add comments about what POSIX says regarding file mode.
---
2013-01-28 19:50:30 +00:00
apb 708b4c121f Document today's changes to uudecode:
* Add "-o outfile" option.  This is required by POSIX.1-2008.
* Recognise "/dev/stdout" as a magic filename, both when embedded in the
  data stream and when specified via "-o".  This is also required by
  POSIX.1-2008.
2013-01-28 16:08:02 +00:00
apb 9a73b122cd * Add "-o outfile" option. This is required by POSIX.1-2008.
* Recognise "/dev/stdout" as a magic filename, both when embedded in the
  data stream and when specified via "-o".  This is also required by
  POSIX.1-2008.
* Reimplement "-p" as an alias for "-o /dev/stdout".

Thanks to Steffen Daode Nurpmeso for drawing my attention to the problems.
2013-01-28 16:06:42 +00:00
matt 755e896fd8 Make mips64e[bl] check more generic. 2013-01-28 14:25:18 +00:00
joerg 438eb8acb3 Use sysctl based code netstat -r. Remove support for post-mortem
analysis.
2013-01-28 13:49:08 +00:00
sjg bd0907ac07 In SHELL COMMANDS section, provide some clues about different
behavior in jobs vs non-jobs mode.
Move the comment about when shell is skipped to this discussion
from COMPATABILITY.
Remove the incorrect statement about default mode being somehow
neither jobs mode or compat mode (it is compat mode).
2013-01-27 18:52:01 +00:00
christos 54e31e2d33 Check read and write errors to avoid warnings from linux.
XXX: Should we print an error and exit instead?
2013-01-26 15:52:59 +00:00
roy 2429e4f2af If char * > long then print a suitable error when passing a string parameter. 2013-01-25 12:27:13 +00:00
roy f2a0b2e345 Remove debug accidently commited. 2013-01-25 12:12:30 +00:00
sjg 7a08ea2711 Remove Check_Cwd - it is no longer needed. 2013-01-25 02:01:10 +00:00
christos 792c142038 use O_CLOEXEC, wrap long line. 2013-01-24 17:50:08 +00:00
christos 4cde7eb37e use O_CLOEXEC. 2013-01-24 17:47:58 +00:00
christos 4cbd234f82 fix type or rval. 2013-01-24 17:46:30 +00:00
christos 185af7b6b5 use O_CLOEXEC 2013-01-24 17:46:00 +00:00
roy a17592c001 Move the strings vs long analysis to a private function, but allow
tput(1) to use it so we can work with string parameters to capabilities.
2013-01-24 10:41:28 +00:00
riastradh 24eac4746d Assert equality, not assignment, in fsplit, and say who guarantees it. 2013-01-23 20:39:46 +00:00
riastradh 04ce843b93 Move assignment out of assertion in cap_mkdb. 2013-01-23 20:27:01 +00:00
msaitoh 302f86804d Fix memory leak in file_matching(). 2013-01-21 03:24:43 +00:00
simonb 044781f677 We only need to be told once about Lee-Jackson Day in Virginia today.
Remove a duplicate for Memorial Day in Michigan while we're here.
2013-01-20 23:52:43 +00:00
apb dd481ceb43 As from today, numeric fields may begin with an optional
plus or minus sign, not only an optional minus sign.
2013-01-20 21:02:11 +00:00
apb 85744c86ad When parsing numbers, allow a leading '+'. 2013-01-20 10:12:58 +00:00
sjg 2a4896f81a meta_oodate: rename ignoreOODATE to needOODATE.
if target uses ${.OODATE} in its script;
1. we canno compare commands
2. if we decide it is out-of-date .OODATE must not be empty.
   The only option is to set it to .ALLSRC
2013-01-19 04:23:37 +00:00
christos b856a9b7db - Don't dump core or print random junk on corrupt utmp entries.
- Factor out duplicated code in the process.
- The actual code is now smaller and does error checking, and encoding.
2013-01-18 22:10:31 +00:00
christos 39fb5ccbf5 From: Steffen "Daode" Nurpmeso:
Amend the previous commit to support zone-style RFC 822 dates.
RFC 5322 marks this zone-style as obsolete (obs-zone), but still supports it.
But then, even if you don't wanna support military style single-letter zones,
the UT zone exists and will not be supported by this commit.

The changes here are not strictly correct (since not all possible
single-letter zones are assigned, and only *UT* has two letters),
but which will match all thre possible *obs-zone* forms.
Compiled and tested on a single MBOX.
2013-01-16 15:21:42 +00:00
christos 8fe0b6ad43 PR/47453: Martin Branderburg: Mail (mail, mailx) does not recognize messages
which have RFC 822 format dates.
XXX: Pullup 6
2013-01-15 17:25:42 +00:00