[Midnightbsd-cvs] src [10318] set mode
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jun 3 15:08:44 EDT 2018
Revision: 10318
http://svnweb.midnightbsd.org/src/?rev=10318
Author: laffer1
Date: 2018-06-03 15:08:43 -0400 (Sun, 03 Jun 2018)
Log Message:
-----------
set mode
Modified Paths:
--------------
trunk/usr.sbin/uhsoctl/uhsoctl.1
trunk/usr.sbin/uhsoctl/uhsoctl.c
Property Changed:
----------------
trunk/usr.sbin/uhsoctl/uhsoctl.1
Modified: trunk/usr.sbin/uhsoctl/uhsoctl.1
===================================================================
--- trunk/usr.sbin/uhsoctl/uhsoctl.1 2018-06-03 19:08:03 UTC (rev 10317)
+++ trunk/usr.sbin/uhsoctl/uhsoctl.1 2018-06-03 19:08:43 UTC (rev 10318)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2008-2009 Fredrik Lindberg
.\" All rights reserved.
.\"
@@ -21,7 +22,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/usr.sbin/uhsoctl/uhsoctl.1 250604 2013-05-13 18:13:50Z joel $
.\"
.Dd Aug 12, 2009
.Dt UHSOCTL 1
@@ -50,7 +51,7 @@
is a small connection utility for Option N.V. devices that are based on Options
packet interface and uses proprietary AT_* calls to establish connections.
The utility (tries to) configure both default route and name servers
-(/etc/resolv.conf).
+.Po Pa /etc/resolv.conf Pc .
.Pp
By default
.Nm
@@ -76,8 +77,13 @@
.It Fl k Ar password
Specify username.
.It Fl r Ar path
-Path to resolv.conf, default /etc/resolv.conf.
-Use /dev/null to disable updating of name servers.
+Path to
+.Pa resolv.conf ,
+default
+.Pa /etc/resolv.conf .
+Use
+.Pa /dev/null
+to disable updating of name servers.
.It Fl f Ar path
Explicitly set the serial port to use as controlling terminal.
Might be needed if the automatic detection fails.
Property changes on: trunk/usr.sbin/uhsoctl/uhsoctl.1
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/usr.sbin/uhsoctl/uhsoctl.c
===================================================================
--- trunk/usr.sbin/uhsoctl/uhsoctl.c 2018-06-03 19:08:03 UTC (rev 10317)
+++ trunk/usr.sbin/uhsoctl/uhsoctl.c 2018-06-03 19:08:43 UTC (rev 10318)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 2008-2009 Fredrik Lindberg
* All rights reserved.
@@ -22,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $MidnightBSD$
+ * $FreeBSD: stable/10/usr.sbin/uhsoctl/uhsoctl.c 292855 2015-12-29 01:08:58Z ngie $
*/
#include <sys/types.h>
@@ -453,9 +454,10 @@
free(ctx->ns[i]);
}
free(ctx->ns);
+ ctx->ns = NULL;
}
- fd = open(respath, O_RDWR | O_CREAT | O_NOFOLLOW);
+ fd = open(respath, O_RDWR | O_CREAT | O_NOFOLLOW, 0666);
if (fd < 0)
return (-1);
@@ -601,7 +603,7 @@
if (resp != NULL) {
l = strlen(resp);
#ifdef DEBUG
- fprintf(stderr, "SYNC_EXP: %s (%d)\n", resp, l);
+ fprintf(stderr, "SYNC_EXP: %s (%zu)\n", resp, l);
#endif
}
More information about the Midnightbsd-cvs
mailing list