Fixed erroneous rejections of setting efs info

N2009_11_14_FIXES
jpandre 2009-07-01 18:56:00 +00:00
parent 9ce63a72d5
commit 5b7a193d26
1 changed files with 2 additions and 2 deletions

View File

@ -134,8 +134,8 @@ int ntfs_set_efs_info(const char *path __attribute__((unused)),
res = 0;
if (ni && value && size) {
if (ni->flags && (FILE_ATTR_ENCRYPTED | FILE_ATTR_COMPRESSED)) {
if (ni->flags && FILE_ATTR_ENCRYPTED) {
if (ni->flags & (FILE_ATTR_ENCRYPTED | FILE_ATTR_COMPRESSED)) {
if (ni->flags & FILE_ATTR_ENCRYPTED) {
ntfs_log_info("File %s already encrypted",path);
errno = EEXIST;
} else {