/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
list = SCDynamicStoreCopyKeyList(store, pattern);
CFRelease(pattern);
if (!list) {
- SCPrint(TRUE, stdout, CFSTR(" %s\n"), SCErrorString(SCError()));
+ if (SCError() != kSCStatusOK) {
+ SCPrint(TRUE, stdout, CFSTR(" %s\n"), SCErrorString(SCError()));
+ } else {
+ SCPrint(TRUE, stdout, CFSTR(" no keys.\n"));
+ }
return;
}
CFArrayGetValueAtIndex(sortedList, i));
}
} else {
- SCPrint(TRUE, stdout, CFSTR(" no subKey's.\n"));
+ SCPrint(TRUE, stdout, CFSTR(" no keys.\n"));
}
CFRelease(sortedList);