--- gptfdisk-1.0.10.old/Makefile +++ gptfdisk-1.0.10/Makefile @@ -168,6 +168,11 @@ strip: #no pre-reqs $(STRIP) $(ALL_EXE) +install: gdisk cgdisk sgdisk fixparts + install -dm 755 $(DESTDIR)/sbin $(DESTDIR)/usr/share/man/man8 + install -m755 gdisk cgdisk sgdisk fixparts $(DESTDIR)/sbin + install -m644 *.8 $(DESTDIR)/usr/share/man/man8 + # what are the source dependencies depend: $(SRCS) $(DEPEND) $(SRCS) --- gptfdisk-1.0.10.old/gptcl.cc +++ gptfdisk-1.0.10/gptcl.cc @@ -157,7 +157,7 @@ } // while // Assume first non-option argument is the device filename.... - device = (char*) poptGetArg(poptCon); + device = strdup ((char*) poptGetArg (poptCon)); if (device != NULL) { device = strdup(device); --- gptfdisk-1.0.10.old/gptcurses.cc +++ gptfdisk-1.0.10/gptcurses.cc @@ -26,7 +26,7 @@ #if defined (__APPLE__) || (__FreeBSD__) #include #else -#include +#include #endif #include "gptcurses.h" #include "support.h"