Dag-Erling Smorgrav | 26 May 19:56
Picon
Favicon

svn commit: r236115 - in stable/9/lib/libpam: . modules

Author: des
Date: Sat May 26 17:56:54 2012
New Revision: 236115
URL: http://svn.freebsd.org/changeset/base/236115

Log:
  MFH r227798, r227933: simplify build by using STATIC_CFLAGS

Modified:
  stable/9/lib/libpam/Makefile.inc
  stable/9/lib/libpam/modules/Makefile.inc
Directory Properties:
  stable/9/lib/libpam/   (props changed)

Modified: stable/9/lib/libpam/Makefile.inc
==============================================================================
--- stable/9/lib/libpam/Makefile.inc	Sat May 26 17:53:35 2012	(r236114)
+++ stable/9/lib/libpam/Makefile.inc	Sat May 26 17:56:54 2012	(r236115)
@@ -31,4 +31,6 @@ DEBUG_FLAGS+=	-DDEBUG
 SHLIB_MAJOR=	5
 PAM_MOD_DIR=	${LIBDIR}

+STATIC_CFLAGS+=	-DOPENPAM_STATIC_MODULES
+
 .include "../Makefile.inc"

Modified: stable/9/lib/libpam/modules/Makefile.inc
==============================================================================
--- stable/9/lib/libpam/modules/Makefile.inc	Sat May 26 17:53:35 2012	(r236114)
+++ stable/9/lib/libpam/modules/Makefile.inc	Sat May 26 17:56:54 2012	(r236115)
(Continue reading)

Dag-Erling Smorgrav | 26 May 19:53
Picon
Favicon

svn commit: r236114 - stable/9/share/mk

Author: des
Date: Sat May 26 17:53:35 2012
New Revision: 236114
URL: http://svn.freebsd.org/changeset/base/236114

Log:
  MFH r227797, 227932: add {STATIC,SHARED}_{C,CXX}FLAGS

Modified:
  stable/9/share/mk/bsd.lib.mk
Directory Properties:
  stable/9/share/mk/   (props changed)

Modified: stable/9/share/mk/bsd.lib.mk
==============================================================================
--- stable/9/share/mk/bsd.lib.mk	Sat May 26 17:38:55 2012	(r236113)
+++ stable/9/share/mk/bsd.lib.mk	Sat May 26 17:53:35 2012	(r236114)
@@ -67,23 +67,32 @@ PICFLAG=-fpic

 PO_FLAG=-pg

+.c.o:
+	${CC} ${STATIC_CFLAGS} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+	@[ -z "${CTFCONVERT}" -o -n "${NO_CTF}" ] || \
+		(${ECHO} ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} && \
+		${CTFCONVERT} ${CTFFLAGS} ${.TARGET})
+
 .c.po:
-	${CC} ${PO_FLAG} ${PO_CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+	${CC} ${PO_FLAG} ${STATIC_CFLAGS} ${PO_CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
(Continue reading)

Dag-Erling Smorgrav | 26 May 19:38
Picon
Favicon

svn commit: r236113 - stable/9/sbin/geom/class/part

Author: des
Date: Sat May 26 17:38:55 2012
New Revision: 236113
URL: http://svn.freebsd.org/changeset/base/236113

Log:
  MFH r230059: improve examples

Modified:
  stable/9/sbin/geom/class/part/gpart.8
Directory Properties:
  stable/9/sbin/geom/class/part/   (props changed)

Modified: stable/9/sbin/geom/class/part/gpart.8
==============================================================================
--- stable/9/sbin/geom/class/part/gpart.8	Sat May 26 17:37:07 2012	(r236112)
+++ stable/9/sbin/geom/class/part/gpart.8	Sat May 26 17:38:55 2012	(r236113)
@@ -996,17 +996,21 @@ partition that can boot
 from a
 .Cm freebsd-ufs
 partition, and install bootstrap code into it.
-This partition must be larger than
-.Pa /boot/gptboot ,
-or the GPT boot you are planning to write, but smaller than 545 KB.
-A size of 15 blocks (7680 bytes) would be sufficient for
-booting from UFS but 128 blocks (64 KB) is used in
-this example to reserve some space for potential
-future need (e.g.\& a larger
+This partition must be larger than the bootstrap code
+.Po
(Continue reading)

Dag-Erling Smorgrav | 26 May 19:37
Picon
Favicon

svn commit: r236112 - stable/9/usr.bin/unzip

Author: des
Date: Sat May 26 17:37:07 2012
New Revision: 236112
URL: http://svn.freebsd.org/changeset/base/236112

Log:
  MFH r234311: utf8 and drop middle name

Modified:
  stable/9/usr.bin/unzip/unzip.1
  stable/9/usr.bin/unzip/unzip.c
Directory Properties:
  stable/9/usr.bin/unzip/   (props changed)

Modified: stable/9/usr.bin/unzip/unzip.1
==============================================================================
--- stable/9/usr.bin/unzip/unzip.1	Sat May 26 17:28:57 2012	(r236111)
+++ stable/9/usr.bin/unzip/unzip.1	Sat May 26 17:37:07 2012	(r236112)
@@ -1,5 +1,5 @@
 .\"-
-.\" Copyright (c) 2007-2008 Dag-Erling Coïdan Smørgrav
+.\" Copyright (c) 2007-2008 Dag-Erling Smørgrav
 .\" All rights reserved.
 .\"
 .\" Redistribution and use in source and binary forms, with or without

Modified: stable/9/usr.bin/unzip/unzip.c
==============================================================================
--- stable/9/usr.bin/unzip/unzip.c	Sat May 26 17:28:57 2012	(r236111)
+++ stable/9/usr.bin/unzip/unzip.c	Sat May 26 17:37:07 2012	(r236112)
(Continue reading)

Dag-Erling Smorgrav | 26 May 19:28
Picon
Favicon

svn commit: r236111 - stable/9/lib/msun/src

Author: des
Date: Sat May 26 17:28:57 2012
New Revision: 236111
URL: http://svn.freebsd.org/changeset/base/236111

Log:
  MFH r234685: utf8 and drop middle name

Modified:
  stable/9/lib/msun/src/s_fabsl.c
Directory Properties:
  stable/9/lib/msun/   (props changed)

Modified: stable/9/lib/msun/src/s_fabsl.c
==============================================================================
--- stable/9/lib/msun/src/s_fabsl.c	Sat May 26 17:19:41 2012	(r236110)
+++ stable/9/lib/msun/src/s_fabsl.c	Sat May 26 17:28:57 2012	(r236111)
@@ -1,5 +1,5 @@
 /*-
- * Copyright (c) 2003 Dag-Erling Coïdan Smørgrav
+ * Copyright (c) 2003 Dag-Erling Smørgrav
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
_______________________________________________
svn-src-all <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe <at> freebsd.org"

(Continue reading)

Dag-Erling Smorgrav | 26 May 19:19
Picon
Favicon

svn commit: r236110 - head/usr.bin/fetch

Author: des
Date: Sat May 26 17:19:41 2012
New Revision: 236110
URL: http://svn.freebsd.org/changeset/base/236110

Log:
  Revert r232274 - unauthorized, unnecessary and incorrect.

Modified:
  head/usr.bin/fetch/fetch.1

Modified: head/usr.bin/fetch/fetch.1
==============================================================================
--- head/usr.bin/fetch/fetch.1	Sat May 26 17:10:16 2012	(r236109)
+++ head/usr.bin/fetch/fetch.1	Sat May 26 17:19:41 2012	(r236110)
@@ -1,5 +1,5 @@
 .\"-
-.\" Copyright (c) 2000-2012 Dag-Erling Smørgrav
+.\" Copyright (c) 2000-2011 Dag-Erling Smørgrav
 .\" All rights reserved.
 .\" Portions Copyright (c) 1999 Massachusetts Institute of Technology; used
 .\" by permission.
@@ -29,7 +29,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd February 28, 2012
+.Dd September 27, 2011
 .Dt FETCH 1
 .Os
(Continue reading)

Dag-Erling Smorgrav | 26 May 19:10
Picon
Favicon

svn commit: r236109 - in head: contrib/openpam contrib/openpam/bin contrib/openpam/bin/openpam_dump_policy contrib/openpam/bin/pamtest contrib/openpam/bin/su contrib/openpam/doc/man contrib/openpam...

Author: des
Date: Sat May 26 17:10:16 2012
New Revision: 236109
URL: http://svn.freebsd.org/changeset/base/236109

Log:
  Update to OpenPAM Micrampelis.

Added:
  head/contrib/openpam/TODO
     - copied unchanged from r236101, vendor/openpam/dist/TODO
  head/contrib/openpam/bin/openpam_dump_policy/
     - copied from r236101, vendor/openpam/dist/bin/openpam_dump_policy/
  head/contrib/openpam/doc/man/openpam_get_feature.3
     - copied unchanged from r236101, vendor/openpam/dist/doc/man/openpam_get_feature.3
  head/contrib/openpam/doc/man/openpam_readlinev.3
     - copied unchanged from r236101, vendor/openpam/dist/doc/man/openpam_readlinev.3
  head/contrib/openpam/doc/man/openpam_readword.3
     - copied unchanged from r236101, vendor/openpam/dist/doc/man/openpam_readword.3
  head/contrib/openpam/doc/man/openpam_set_feature.3
     - copied unchanged from r236101, vendor/openpam/dist/doc/man/openpam_set_feature.3
  head/contrib/openpam/doc/man/openpam_straddch.3
     - copied unchanged from r236101, vendor/openpam/dist/doc/man/openpam_straddch.3
  head/contrib/openpam/lib/openpam_ctype.h
     - copied unchanged from r236101, vendor/openpam/dist/lib/openpam_ctype.h
  head/contrib/openpam/lib/openpam_features.c
     - copied unchanged from r236101, vendor/openpam/dist/lib/openpam_features.c
  head/contrib/openpam/lib/openpam_features.h
     - copied unchanged from r236101, vendor/openpam/dist/lib/openpam_features.h
  head/contrib/openpam/lib/openpam_get_feature.c
(Continue reading)

Dag-Erling Smorgrav | 26 May 19:08
Picon
Favicon

svn commit: r236108 - stable/9/lib/libfetch

Author: des
Date: Sat May 26 17:08:01 2012
New Revision: 236108
URL: http://svn.freebsd.org/changeset/base/236108

Log:
  MFH r234837: avoid busy-loop on slow connections when no timeout is set.
  MFH r234838: don't reuse credentials when redirected to a different host.

Modified:
  stable/9/lib/libfetch/common.c
  stable/9/lib/libfetch/http.c
Directory Properties:
  stable/9/lib/libfetch/   (props changed)

Modified: stable/9/lib/libfetch/common.c
==============================================================================
--- stable/9/lib/libfetch/common.c	Sat May 26 17:07:34 2012	(r236107)
+++ stable/9/lib/libfetch/common.c	Sat May 26 17:08:01 2012	(r236108)
@@ -455,11 +455,9 @@ fetch_read(conn_t *conn, char *buf, size
 	struct timeval now, timeout, delta;
 	fd_set readfds;
 	ssize_t rlen, total;
-	int r;
 	char *start;

-	if (fetchTimeout) {
-		FD_ZERO(&readfds);
+	if (fetchTimeout > 0) {
 		gettimeofday(&timeout, NULL);
(Continue reading)

Dag-Erling Smorgrav | 26 May 19:03
Picon
Favicon

svn commit: r236106 - head/lib/libpam/modules/pam_ssh

Author: des
Date: Sat May 26 17:03:45 2012
New Revision: 236106
URL: http://svn.freebsd.org/changeset/base/236106

Log:
  Passing NULL as a key casues a segfault when loading SSH 1 keys.  Use
  an empty string instead.

Modified:
  head/lib/libpam/modules/pam_ssh/pam_ssh.c

Modified: head/lib/libpam/modules/pam_ssh/pam_ssh.c
==============================================================================
--- head/lib/libpam/modules/pam_ssh/pam_ssh.c	Sat May 26 16:42:47 2012	(r236105)
+++ head/lib/libpam/modules/pam_ssh/pam_ssh.c	Sat May 26 17:03:45 2012	(r236106)
@@ -112,7 +112,7 @@ pam_ssh_load_key(const char *dir, const 
 	 * with an empty passphrase, and if the key is not encrypted,
 	 * accept only an empty passphrase.
 	 */
-	key = key_load_private(fn, NULL, &comment);
+	key = key_load_private(fn, "", &comment);
 	if (key != NULL && !(*passphrase == '\0' && nullok)) {
 		key_free(key);
 		return (NULL);
_______________________________________________
svn-src-all <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe <at> freebsd.org"

(Continue reading)

Dag-Erling Smorgrav | 26 May 18:42
Picon
Favicon

svn commit: r236105 - stable/9/lib/libfetch

Author: des
Date: Sat May 26 16:42:47 2012
New Revision: 236105
URL: http://svn.freebsd.org/changeset/base/236105

Log:
  MFH r233648: cosmetic

Modified:
  stable/9/lib/libfetch/fetch.3
Directory Properties:
  stable/9/lib/libfetch/   (props changed)

Modified: stable/9/lib/libfetch/fetch.3
==============================================================================
--- stable/9/lib/libfetch/fetch.3	Sat May 26 16:37:43 2012	(r236104)
+++ stable/9/lib/libfetch/fetch.3	Sat May 26 16:42:47 2012	(r236105)
@@ -375,7 +375,7 @@ If the
 (if-modified-since) flag is specified, and
 the
 .Va ims_time
-field is set in 
+field is set in
 .Vt "struct url" ,
 then
 .Fn fetchXGetHTTP
_______________________________________________
svn-src-all <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe <at> freebsd.org"
(Continue reading)

Dag-Erling Smorgrav | 26 May 18:37
Picon
Favicon

svn commit: r236104 - stable/9/lib/libfetch

Author: des
Date: Sat May 26 16:37:43 2012
New Revision: 236104
URL: http://svn.freebsd.org/changeset/base/236104

Log:
  MFH r230478: fix nits in already-merged r230307.

Modified:
  stable/9/lib/libfetch/common.c
Directory Properties:
  stable/9/lib/libfetch/   (props changed)

Modified: stable/9/lib/libfetch/common.c
==============================================================================
--- stable/9/lib/libfetch/common.c	Sat May 26 16:34:39 2012	(r236103)
+++ stable/9/lib/libfetch/common.c	Sat May 26 16:37:43 2012	(r236104)
@@ -416,7 +416,6 @@ fetch_cache_data(conn_t *conn, char *src
 	if (conn->cache.size < nbytes) {
 		tmp = realloc(conn->cache.buf, nbytes);
 		if (tmp == NULL) {
-			errno = ENOMEM;
 			fetch_syserr();
 			return (-1);
 		}
@@ -481,7 +480,7 @@ fetch_read(conn_t *conn, char *buf, size
 		conn->cache.len -= total;
 		conn->cache.pos += total;
 		len -= total;
-		buf+= total;
(Continue reading)


Gmane