FreeBSD Bugzilla – Attachment 46690 Details for
Bug 71616
[patch] [nis] yp_mkdb(8): cleanup of the usr.sbin/yp_mkdb code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.08 KB, created by
Dan Lukes
on 2004-09-12 03:40:23 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Dan Lukes
Created:
2004-09-12 03:40:23 UTC
Size:
1.08 KB
patch
obsolete
>*** usr.sbin/yp_mkdb/yp_mkdb.c.ORIG Sun Sep 5 18:54:07 2004 >--- usr.sbin/yp_mkdb/yp_mkdb.c Sun Sep 5 19:01:20 2004 >*************** >*** 87,93 **** > > key.data = NULL; > while (yp_next_record(dbp, &key, &data, 1, 1) == YP_TRUE) >! printf("%.*s %.*s\n", key.size,key.data,data.size,data.data); > > (void)(dbp->close)(dbp); > return; >--- 87,94 ---- > > key.data = NULL; > while (yp_next_record(dbp, &key, &data, 1, 1) == YP_TRUE) >! printf("%.*s %.*s\n", key.size, (char *)key.data, >! data.size, (char *)data.data); > > (void)(dbp->close)(dbp); > return; >*************** >*** 218,224 **** > > key.data = "YP_LAST_MODIFIED"; > key.size = sizeof("YP_LAST_MODIFIED") - 1; >! snprintf(buf, sizeof(buf), "%lu", time(NULL)); > data.data = (char *)&buf; > data.size = strlen(buf); > yp_put_record(dbp, &key, &data, 0); >--- 219,225 ---- > > key.data = "YP_LAST_MODIFIED"; > key.size = sizeof("YP_LAST_MODIFIED") - 1; >! snprintf(buf, sizeof(buf), "%lu", (long unsigned int)time(NULL)); > data.data = (char *)&buf; > data.size = strlen(buf); > yp_put_record(dbp, &key, &data, 0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 71616
: 46690