diff -Naurp --exclude-from excludes old/libsemanage/src/database_file.c new/libsemanage/src/database_file.c --- old/libsemanage/src/database_file.c 2006-01-17 09:11:06.000000000 -0700 +++ new/libsemanage/src/database_file.c 2006-01-17 11:26:15.000000000 -0700 @@ -159,6 +159,14 @@ static int dbase_file_flush( } __fsetlocking(str, FSETLOCKING_BYCALLER); + if (fprintf(str, "# This file is auto-generated by libsemanage\n" + "# Please use the semanage command to make " + "changes\n\n") < 0) { + + ERR(handle, "could not write file header for %s", fname); + goto err; + } + for (ptr = dbase->llist.cache_tail; ptr != NULL; ptr = ptr->prev) { if (rftable->print(handle, ptr->data, str) < 0) goto err;