# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: H:\My Documents\Projects\CUPS\cups-1.3.x\cups # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: util.c --- util.c Base (BASE) +++ util.c Locally Modified (Based On LOCAL) @@ -1253,6 +1253,21 @@ ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, title); + if (num_files == 1) + { + /* + * Add the original document filename... + */ + + if ((base = strrchr(files[0], '/')) != NULL) + base ++; + else + base = files[0]; + + ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "document-name", + NULL, base); + } + /* * Then add all options... */