From f1a9497df5db81a71987fa20f10c831030987e36 Mon Sep 17 00:00:00 2001 From: joe Date: Thu, 27 Jan 2000 21:17:01 +0000 Subject: Historically file flags (schg, uschg, etc) have been converted from string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progressed more and more other tools have used these private functions to manipulate the file flags. Recently I moved these functions from /usr/src/bin/ls to libutil, but after some discussion with bde it's been decided that they really ought to go in libc. There are two already existing libc functions for manipulating file modes: setmode and getmode. In keeping with these flags_to_string has been renamed getflags and string_to_flags to setflags. The manual page could probably be improved upon ;) --- usr.sbin/mtree/spec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/mtree/spec.c') diff --git a/usr.sbin/mtree/spec.c b/usr.sbin/mtree/spec.c index 3fa9e7c..10c3704 100644 --- a/usr.sbin/mtree/spec.c +++ b/usr.sbin/mtree/spec.c @@ -214,7 +214,7 @@ set(t, ip) case F_FLAGS: if (strcmp("none", val) == 0) ip->st_flags = 0; - else if (string_to_flags(&val, &ip->st_flags,NULL) != 0) + else if (setflags(&val, &ip->st_flags, NULL) != 0) errx(1, "line %d: invalid flag %s",lineno, val); break; case F_GID: -- cgit v1.1