diff options
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing_migrate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/printing/nt_printing_migrate.c b/source3/printing/nt_printing_migrate.c index 44800014e8..616d7af3d6 100644 --- a/source3/printing/nt_printing_migrate.c +++ b/source3/printing/nt_printing_migrate.c @@ -73,6 +73,10 @@ NTSTATUS printing_tdb_migrate_form(TALLOC_CTX *mem_ctx, result = winreg_printer_addform1(mem_ctx, b, &f1); + if (W_ERROR_EQUAL(result, WERR_FILE_EXISTS)) { + /* Don't migrate form if it already exists. */ + result = WERR_OK; + } if (!W_ERROR_IS_OK(result)) { return werror_to_ntstatus(result); } |