650de012021ea2efc1e01f8b15c0bead067ca4cc
galt
  Mon Sep 30 16:06:14 2024 -0700
Rocky 9 tar now requires the command line option "-34473"before the parameter "." fixes #34473

diff --git src/hg/hgSession/backup.c src/hg/hgSession/backup.c
index 30ff9f7..48337a5 100644
--- src/hg/hgSession/backup.c
+++ src/hg/hgSession/backup.c
@@ -1130,31 +1130,31 @@
 
 char archiveName[1024];
 safef(archiveName, sizeof archiveName, "savedSessionCtRaw.tar.gz");
 
 dyStringPrintf(dyProg, "<br>\n");
 int saveDySize = dyProg->stringSize;
 dyStringPrintf(dyProg, "creating and compressing archive %s <br>\n", archiveName);
 updateProgessFile(backgroundProgress, dyProg);
 lazarusLives(20 * 60);
 
 // create the archive
 char *cwd = cloneString(getCurrentDir());
 setCurrentDir(tempOutRand);
 char excludeBuf[4096];
 safef(excludeBuf, sizeof excludeBuf, "--exclude=%s", archiveName);
-char *pipeCmd1[] = { "tar", "-zcphf", archiveName, ".", excludeBuf, NULL};
+char *pipeCmd1[] = { "tar", "-zcphf", archiveName, excludeBuf, ".", NULL};
 struct pipeline *pl = pipelineOpen1(pipeCmd1, pipelineWrite | pipelineNoAbort, "/dev/null", NULL, 0);
 int sysVal = pipelineWait(pl);
 setCurrentDir(cwd);
 
 if (!((sysVal == 0) || (sysVal == 1)))  // we tolerate 1 because tar doesn't like us creating the archive in the directory we're backing up
     errAbort("System call returned %d for:\n  %s", sysVal, pipelineDesc(pl));
 
 dyProg->stringSize = saveDySize;  // restore prev size, popping.
 dyProg->string[dyProg->stringSize] = 0;
 dyStringPrintf(dyProg, "archive %s created <br>\n", archiveName);
 updateProgessFile(backgroundProgress, dyProg);
 lazarusLives(20 * 60);
 
 char downPath[1024];
 safef(downPath, sizeof downPath, "%s/%s", tempOutRand, archiveName);