Mercurial > emacs
comparison src/fileio.c @ 108184:f4b0e5358091
* src/fileio.c (Ffile_selinux_context): Context functions may return null.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Fri, 30 Apr 2010 19:58:41 -0700 |
parents | 12062a99ca8d |
children | 261591829d04 |
comparison
equal
deleted
inserted
replaced
108183:b67d7273ec18 | 108184:f4b0e5358091 |
---|---|
2916 { | 2916 { |
2917 conlength = lgetfilecon (SDATA (absname), &con); | 2917 conlength = lgetfilecon (SDATA (absname), &con); |
2918 if (conlength > 0) | 2918 if (conlength > 0) |
2919 { | 2919 { |
2920 context = context_new (con); | 2920 context = context_new (con); |
2921 values[0] = build_string (context_user_get (context)); | 2921 if (context_user_get (context)) |
2922 values[1] = build_string (context_role_get (context)); | 2922 values[0] = build_string (context_user_get (context)); |
2923 values[2] = build_string (context_type_get (context)); | 2923 if (context_role_get (context)) |
2924 values[3] = build_string (context_range_get (context)); | 2924 values[1] = build_string (context_role_get (context)); |
2925 if (context_type_get (context)) | |
2926 values[2] = build_string (context_type_get (context)); | |
2927 if (context_range_get (context)) | |
2928 values[3] = build_string (context_range_get (context)); | |
2925 context_free (context); | 2929 context_free (context); |
2926 } | 2930 } |
2927 if (con) | 2931 if (con) |
2928 freecon (con); | 2932 freecon (con); |
2929 } | 2933 } |