Skip to content

mkalias update version 0.6 if/when destination is an already existin…#9

Open
hereisderek wants to merge 6 commits into
specious:masterfrom
hereisderek:master
Open

mkalias update version 0.6 if/when destination is an already existin…#9
hereisderek wants to merge 6 commits into
specious:masterfrom
hereisderek:master

Conversation

@hereisderek
Copy link
Copy Markdown

…g folder, new alias will be created inside of given folder

Copy link
Copy Markdown
Owner

@specious specious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this contribution. Please take a look at my comments.

Comment thread mkalias/mkalias.c Outdated


0.6
* if/when destination is an already existing folder, new alias will be created inside of given folder by Derek(https://github.com/1and1get2 )
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate the attribution contribution, but proper formatting would be nice.

Comment thread mkalias/mkalias.c Outdated
}

//check if the destination is an existing folder, if so create alias inside of destination folder
char newDest[strlen(destPath) + strlen(filename) + 10];
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reasoning behind the 10 literal?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't remember.. probably just messing around and forgot to revert the changes.
I haven't done any c/c++ for a long time needed to try things out

@hereisderek
Copy link
Copy Markdown
Author

i removed the "10 literal" thingy, however, I'm not certain what to do with the format, it looks okay I think?

Copy link
Copy Markdown
Owner

@specious specious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your additions. Please take another look :)

Comment thread mkalias/mkalias.c Outdated
/*
CHANGES


Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spurious spaces. I see them in my editor :)

hidden-spaces

Comment thread mkalias/mkalias.c Outdated
strcat(newDest, "/");
strcat(newDest, (char *)filename);
destPath = newDest;
// printf("Destination is an existing folder, changing to new location: %s\n", (char *) destPath);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What value does this commented out log statement add?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not much probably. it should get stripped out when being compiled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants