Lines Matching defs:cmdbuf
1196 char *cmdbuf;
1226 cmdbuf = am(myself, cmd_length);
1228 if (NULL == cmdbuf) {
1230 "%s: Could not alloc cmdbuf.", myself);
1239 * We use the cmdbuf to store the qualified netgroup map name there will
1242 strlcpy(cmdbuf, map->map_path, strlen(map->map_path) -
1244 strcat(cmdbuf, NETGROUP_MAP);
1245 netgroupmap = (map_ctrl *)shim_dbm_open(cmdbuf,
1249 "%s: Could not update %s.", myself, cmdbuf);
1250 sfree(cmdbuf);
1262 strcpy(cmdbuf, "/usr/sbin/makedbm -u ");
1265 strncat(cmdbuf, map->map_path, strlen(map->map_path) -
1267 strcat(cmdbuf, NETGROUP_MAP);
1270 strcat(cmdbuf, " | /usr/sbin/revnetgroup -h > ");
1272 strcat(cmdbuf, " | /usr/sbin/revnetgroup -u > ");
1276 strncat(cmdbuf, map->map_path, strlen(map->map_path) -
1278 strcat(cmdbuf, temp_file_name);
1280 if (0 > system(cmdbuf)) {
1282 "(errno=%d)", myself, cmdbuf, errno);
1283 sfree(cmdbuf);
1286 sfree(cmdbuf);
1298 cmdbuf = am(myself, strlen("/usr/sbin/makedbm") +
1302 if (NULL == cmdbuf) {
1304 "%s: Could not allocate cmdbuf.", myself);
1310 strcpy(cmdbuf, "/usr/sbin/makedbm ");
1311 strncat(cmdbuf, map->map_path, strlen(map->map_path) -
1313 strcat(cmdbuf, temp_file_name);
1314 strcat(cmdbuf, " ");
1315 strcat(cmdbuf, temp_entries);
1317 if (0 > system(cmdbuf)) {
1319 "(errno=%d)", myself, cmdbuf, errno);
1320 sfree(cmdbuf);
1327 strlcpy(cmdbuf, map->map_path, strlen(map->map_path) -
1329 strcat(cmdbuf, temp_file_name);
1330 res = unlink(cmdbuf);
1334 "(errno=%d)", myself, cmdbuf, errno);
1337 sfree(cmdbuf);
1340 sfree(cmdbuf);