summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffdir.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-05-20Use errc/warnc to simplify code.guenther1-3/+3
Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
2014-05-20Bring UTF8_{getc,putc} up-to-date: it's been a decade since 5- and 6-byteguenther8-186/+176
encodings and encoding of surrogate pair code points were banned. Add checks for those, both to those functions and to the code decoding the BMP and UNIV encodings. ok miod@
2014-05-19Format string fixes and removal of -Wno-format for sgi. Based upon anmiod19-53/+55
initial diff from jasper@
2014-05-19X509_free() the certificate if the server hostname check fails.jca1-1/+2
No functional change. Reported by Mike Small and Maxime Villard.
2014-05-19Fix several bounds checks in ssl_add_clienthello_tlsext() andmiod2-68/+78
ssl_add_serverhello_tlsext(), and convert all of them to the same idiom, for easier review. Math is hard, let's go webshopping. Help and ok guenther@
2014-05-19Explicitely initialize two static variables introduced in the previousjca1-3/+3
commit, to please lteo@
2014-05-19HTTPS connections may see redirects, so initialize libcrypto and libssljca1-22/+49
only once, and reuse the crafted SSL_CTX for further connections. ok lteo@
2014-05-19Plug a small memory leak: if we pass checkin_init/checkin_updatejca1-2/+3
a revision thru pb.newrev, it will not be freed. From Fritjof Bornebusch, no objections from tech@
2014-05-19no more -K;jmc1-2/+2
2014-05-19kerberos leftoverstedu3-200/+8
2014-05-19consistent use of uint32_t for poison valuestedu4-13/+13
2014-05-19Add some consistency in fuse error handling. We need to return ENXIOsyl1-34/+80
when the fuse communication channel is broken and ENOSYS when the libfuse callback does not exist. Reported by Helg Bredow, thanks! ok tedu@
2014-05-19as reported by Helg, should use realpath for mounts. ok guenther syltedu1-3/+3
2014-05-19There is no need to remember which usb(4) device is the child of an USBmpi7-24/+19
host controller because autoconf(9) already does it. Breakage reported by todd@
2014-05-19synctodd18-18/+18
2014-05-19More KNF.jsing1-60/+60
2014-05-19More whack-a-mole^Wfips.jsing2-18/+1
ok miod@
2014-05-19It is perfectly valid to call free(NULL), so stop checking for non-NULLjsing29-128/+80
before calling free - of some course parts of the code already did this.
2014-05-19Nuke some trailing whitespace that snuck in.krw1-3/+3
2014-05-19No point in trying to update the -L file on loss of link if no -L haskrw1-2/+2
been specified. Eliminates spurious "Couldn't write ''" log messages. Spotted while looking into Roman Gorelov's logs on another problem.
2014-05-19Add a H_SAVE_FP operation to history() which lets the history be savednicm5-13/+41
to an open file pointer. From NetBSD via Eitan Adler. ok millert
2014-05-19fix format mistakes visible if AUDIO_DEBUG is definedratchov1-13/+13
2014-05-19unbreak the build when DIAGNOSTIC is not definedjsg1-1/+3
allows ramdisk kernels to build again
2014-05-19Update run(4) firmware to version 0.33, with permission from Dennis Leestsp1-701/+701
of Mediatek to keep using the free firmware licence we've been using. Tested by myself, rapha@, Fred Crowson, Dinar Talypov, gerhard@, matthieu@.
2014-05-19Enable the 3- and 4-byte sequence tests for UTF8_getc()guenther1-9/+18
Add surrogate and out-of-range tests for UTF8_putc() on the assumption we'll make it return -2. Maybe.
2014-05-18Add regression test for UTF8_{getc,putc}()guenther3-2/+317
2014-05-18hid_start_parse can't fail - it calls malloc(M_WAITOK). ok mpi@jca1-3/+1
2014-05-18Correctly handle files smaller than an ELF header; reported by drahn@bitrigmiod1-5/+3
2014-05-18_PIC is an optional method, so we shouldn't be aborting the rest of themlarkin1-3/+2
MADT processing if it is missing. This, combined with an earlier diff from kettenis@ to fix MADT interrupt polarity processing, should resolve the issues reported with QEMU/KVM ACPI power button presses when using OpenBSD guests. ok kettenis@, pirofti@ tested by myself and kettenis for the past few weeks
2014-05-18If you need to allocate `a + b' bytes of memory, then don't allocate `a + b*2',miod6-12/+12
this is confusing and unnecessary. Help (coz I got confused) and ok guenther@ beck@
2014-05-18Make sure UTF8_getc() is invoked with the proper buffer size.miod2-4/+4
ok beck@ guenther@
2014-05-18use reallocarrayespie4-17/+24
okay ian@, chl@
2014-05-18factor out a bit of the chunk index code and use it to make sure that atedu1-14/+33
freed chunk is actually freeable immediately. catch more errors. hints/ok otto
2014-05-18Do not pass an xfer pointer to the timeout routine checking for root hubmpi2-47/+29
status changes because it might be freed when detaching the root uhub(4). Also do not reschedule a timeout if the pipe is being aborted. Finally do not add more code to retrieve the 'bInterval' value of the root hub endpoint descriptor since this value is hardcoded in the uhci(4) driver.
2014-05-18Out of all the openssl apps, just one of them has code to mess around withjsing1-12/+0
electric fence externs. Nuke from orbit. ok miod@
2014-05-18use reallocarrayespie3-8/+8
okay miod@, millert@
2014-05-18W_OK comes via unistd.h - nuke several #ifndef W_OK that attempt to handlejsing1-13/+2
missing defines.
2014-05-18Remove unused include.jsing3-3/+0
2014-05-18Group and sort includes.jsing50-214/+308
Currently "apps.h" needs to be included before any of the openssl headers and there are several cases where the code depends on headers that are included by something included by apps.h... More untangling saved for later on.
2014-05-18Plug memory leaks upon error in OCSP_url_svcloc_new().miod2-12/+18
ok jsing@
2014-05-18In OCSP_sendreq_bio(), cope with OCSP_sendreq_new() returning NULL.miod2-8/+12
ok jsing@
2014-05-18In dtls1_reassemble_fragment() and dtls1_process_out_of_seq_message(), in casemiod2-14/+6
of error, make sure we do not free pitem which is still linked into the pqueue. In the same vain, only free `frag' if we allocated it in this function. Help and ok beck@
2014-05-18In ssl3_send_certificate_request(), when adding the extra payload ifmiod2-2/+12
NETSCAPE_HANG_BUG is defined, make sure we BUF_MEM_grow() the buffer to accomodate for the payload size. Issue reported by David Ramos; ok beck@
2014-05-18Make sure ssl3_setup_buffers() does not return upon error with a freedmiod2-14/+14
pqueue still chained, by inserting it into the list only after all possible failure conditions have been avoided. Reported and fix proposed by David Ramos; ok beck@
2014-05-18Fix tail packet check in elantech v3 touchpad code. Due to a typo thisstsp1-2/+2
code was masking out bits which were also tested in the same expression. Reported by cppcheck via jsg@ (Expression '(X & 0xfc) != 0x2' is always true). Tested with Elantech Touchpad, version 3, firmware 0x250f00.
2014-05-18Don't add a lease to the leases TAILQ more than once. It tends tokrw1-4/+8
make writing out the leases file go into an infinite loop until /var is full. Reported by Roman Gorelov via bugs@ Fix tested & ok stsp@ uwe@
2014-05-18synctodd1-0/+1
2014-05-18bio_err is initialised in main, hence there is no need to initialise itjsing46-168/+16
in each application (since there is no longer a non-monolithic mode). In typical OpenSSL fashion, the code is inconsistent and there are multiple ways that bio_err was initialised - none of them actually checked to see if the initialisation actually succeeded. Additionally, it is worth noting that in at least two cases bio_err was also being used before it would have been initialised. ok miod@
2014-05-18More KNF.jsing20-386/+416
2014-05-18Omit -Werror if building with gcc3, for it triggers "redefinition of `pqueue'"miod1-2/+6
warnings now that pqueue.h has been removed from public scope.