Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,4 +1,6 @@
$NetBSD: patch-command.c,v 1.1 2014/01/08 11:54:04 hauke Exp $
$NetBSD: patch-command.c,v 1.2 2016/04/14 11:17:31 hauke Exp $
Fix for Radmind bug #221, accomodating for 64 bit time_t
--- command.c.orig 2010-12-13 03:42:49.000000000 +0000
+++ command.c
@@ -43,12 +45,16 @@ $NetBSD: patch-command.c,v 1.1 2014/01/08 11:54:04 hauke Exp $
"f", enc_file,
DEFAULT_MODE, DEFAULT_UID, DEFAULT_GID,
st.st_mtime, st.st_size, cksum_b64 );
@@ -690,7 +690,7 @@ f_stat( SNET *sn, int ac, char *av[] )
@@ -690,7 +690,11 @@ f_stat( SNET *sn, int ac, char *av[] )
return( 0 );
}
}
- snet_writef( sn, "%s %s %s %s %s %d %" PRIofft "d %s\r\n",
+ snet_writef( sn, RADMIND_STAT_FMT,
+ /*
+ * Cannot use RADMIND_STAT_FMT shorthand here, since custom
+ * permission, user and group information are strings.
+ */
+ snet_writef( sn, "%s %s %s %s %s %" PRItimet "d %" PRIofft "d %s\r\n",
av[ 0 ], enc_file,
av[ 2 ], av[ 3 ], av[ 4 ],
st.st_mtime, st.st_size, cksum_b64 );