Commit Graph

9923 Commits

Author SHA1 Message Date
alnsn
e0e35e91bd Typo. 2011-08-29 14:09:01 +00:00
wiz
4776eb0a7a Use Cm to mark up command arguments. Use An -nosplit to avoid linebreak in sentence. 2011-08-28 17:10:37 +00:00
elric
95bd2d4a1e Remove crypto/dist/heimdal and its associated build infrastructure as
it has been replaced by crypto/external/bsd/heimdal.
2011-08-28 16:21:57 +00:00
mbalmer
b6211abfc7 Initialize local variables that previously were global (user, group). 2011-08-28 08:32:47 +00:00
mbalmer
92ced822d1 Add a new ioctl, GPIOPULSE to gpio(4) to allow for pulsing a pin.
If a pin can pulse in hardware, that will be used, else it will
be pulsed in software.  There is no way yet to set the pulse frequency
for pins that pulse in hardware.  While here, make the code mpsafe and
allow more than one thread in the driver (access to ioctl is serialized).
2011-08-28 07:48:50 +00:00
joerg
52e7e4adca ANSIfy 2011-08-27 22:41:35 +00:00
joerg
19f8b044c9 static + __dead 2011-08-27 22:38:48 +00:00
joerg
b71455acb5 Use __dead. Move global variables into function scope. 2011-08-27 22:32:44 +00:00
joerg
42286e2542 Sprinkle const 2011-08-27 22:30:44 +00:00
joerg
8756b97804 static + __dead 2011-08-27 22:22:01 +00:00
joerg
94b1bee225 Mark types as static and usage as dead. 2011-08-27 22:17:53 +00:00
jakllsch
3c644b8a5a Bring mount_psshfs user/host/path argument processing in line with sftp(1). 2011-08-25 19:49:05 +00:00
joerg
1c874f86e1 Use of non-literal format string 2011-08-25 16:53:25 +00:00
joerg
9c4f17f60e Use of non-literal format strings 2011-08-25 16:47:20 +00:00
joerg
21f7e41a91 Use of non-literal format string. 2011-08-25 16:22:43 +00:00
christos
91cc0e5629 more fixes from martin 2011-08-23 19:57:24 +00:00
christos
3e74546ba5 remove stray brace, minor knf 2011-08-23 19:17:07 +00:00
christos
1beaa2ceec PR/45285: Martin Matuska: makefs does not properly convert ISO level 1 and 2
filenames (buffer overflow)

makefs does not properly verify the maximum filename length in the
special "." case for both ISO level 1 and ISO level 2 filename
conversion.  This creates broken images or causes a buffer overflow
(ISO level 2).

ISO level 1:
If a filename contains only dots or up to 8 characters followed by
dots the 8+3 limit check doesn't work.

ISO level 2:
If a filename contains a dot in the first 30 characters and a dot
on the 30th character, the length limit check doesn't work and the
buffer is overflowed.

$ mkdir level1
$ touch level1/12345............
$ makefs -t cd9660 -o isolevel=1 test.iso level1

$ mkdir level2
$ touch level2/1234567890.2345678901234567.....34567890123456789012345
$ makefs -t cd9660 -o isolevel=2 test.iso level2
2011-08-23 17:09:11 +00:00
christos
93bbed154f use const char [] for format 2011-08-21 08:59:50 +00:00
christos
21a5b878f0 gcc-4.5 is picky about potential negative indexes. appease it. 2011-08-16 16:45:20 +00:00
christos
23bcf1ad25 remove gcc-4.5 hacks 2011-08-16 16:37:07 +00:00
mbalmer
0813ba11d0 Fix some typos. 2011-08-16 14:29:16 +00:00
christos
0d33c75c01 use memcpy to avoid type punning. 2011-08-16 12:49:13 +00:00
christos
0f2de03a73 remove gcc-4.5 hack and check fileno instead. 2011-08-16 12:39:29 +00:00
christos
6d3347a9d8 Avoid non-literal format strings 2011-08-16 10:39:31 +00:00
christos
d5189d25a6 avoid non-literal format strings 2011-08-16 08:33:46 +00:00
christos
73de74d401 document non-literal format string (unsafe) 2011-08-16 08:18:19 +00:00
christos
a0ca34f556 document non-literal format 2011-08-16 08:04:17 +00:00
christos
6f0b276b18 fix non-literal strings 2011-08-16 08:02:18 +00:00
christos
982a21784c - no need for gcc-4.5 hacks
- document non literal format
2011-08-16 07:52:32 +00:00
wiz
8e6d328065 Re-order `usage' alphabetically;
rename option arguments in the manpage's `SYNOPSIS' section to
match those from `usage' (not the other way around; the `usage'-line
(and other parts of makefs.c) contain the correct names);
minor punctuation improvements.

From Snader_LB.
2011-08-15 14:45:01 +00:00
wiz
4db9004657 Re-order and synchronize options listed in manpage (`SYNOPSIS' and
text) as well as `usage'-line; several punctuation improvements.
From Snader_LB.
2011-08-15 14:43:17 +00:00
wiz
d91834d02d Sync usage with SYNOPSIS. 2011-08-15 14:31:58 +00:00
wiz
8579c851c4 Sort options in SYNOPSIS. From Snader_LB. 2011-08-15 14:31:24 +00:00
tnn
c908dc3b47 Use proper capitalization. Reported on IRC. 2011-08-15 14:20:08 +00:00
dholland
c1b04cb467 Add compile-time assertion to make sure the previous doesn't go off the
rails sometime in the future.
2011-08-14 23:13:43 +00:00
christos
0b147c5d2b avoid type punned warnings 2011-08-14 17:57:44 +00:00
christos
5e788a3ae4 remove gcc type punned warnings 2011-08-14 17:54:55 +00:00
christos
7a3dc95e5c fix various gcc-4.5 warnings 2011-08-14 17:50:16 +00:00
christos
ef977d1767 use memcpy to avoid type punned warnings 2011-08-14 17:42:23 +00:00
mbalmer
c9922bae5e use my NetBSD email address 2011-08-12 08:06:23 +00:00
mbalmer
badcc9683d Make some functions static, use getprogname() instead of
'extern char *__progname'.
2011-08-12 08:02:33 +00:00
riastradh
772f45cfc9 Cache vattr in psshfs's setattr.
This means within the cache window, a setattr that wouldn't change the
remote file's attributes from our current view of them will not be
relayed to the server and wait for the server to answer.  Thus, e.g., a
process with a periodic timer interrupt that calls open(2) in a loop
can make progress with much higher probability than without caching.

XXX The test case doesn't work, so it's currently disabled.  It needs
to stop the child of sshd that is handling an sftp session, not sshd
itself, and it's not obvious how to do that.

ok pooka
2011-08-12 04:14:00 +00:00
uch
7d18226237 newfs_v7fs(8)'s -v and -P options are obsolete. changed to newfs(8) compatible -V option. 2011-08-10 11:31:49 +00:00
jmmv
dcba4bad03 Check (and fix) that unprivileged-user has been changed from _atf to _tests
in /etc/atf/common.conf.  Requested by martin@.
2011-08-09 18:24:46 +00:00
joerg
52dc944dae Requires -Wno-array-bounds with clang now. 2011-08-09 13:06:10 +00:00
joerg
975a569b2d Passes with the relaxed array boundary check in clang 2011-08-09 13:04:28 +00:00
manu
f8584de4e3 Fix warning 2011-08-09 07:00:13 +00:00
christos
b166834bb8 PR/45217: Martin Matuska: Use proper lengths to space pad fields and don't
overwrite them according to the spec.
2011-08-06 23:25:19 +00:00
jmmv
bbf950e188 Rename the _atf user to _tests. The _atf name will get obsoleted if/when
we migrate to Kyua (atf v2), so it's better to use a generic name that does
not depend on the specific implementation.  Also, this user has not gone
out yet into any stable release, so we can easily rename it.

Suggested by jruoho@.
2011-08-05 14:43:41 +00:00